mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
refactor: removed outdated code with databases sync (cards db downloads from a server);
This commit is contained in:
parent
d6adc6d051
commit
ab515e60fe
7 changed files with 9 additions and 100 deletions
|
|
@ -1188,25 +1188,6 @@ public class MageServerImpl implements MageServer {
|
|||
return action.negativeResult();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ExpansionInfo> syncGetMissingExpansionData(List<String> codes) {
|
||||
List<ExpansionInfo> result = new ArrayList<>();
|
||||
for (ExpansionInfo expansionInfo : ExpansionRepository.instance.getAll()) {
|
||||
if (!codes.contains(expansionInfo.getCode())) {
|
||||
result.add(expansionInfo);
|
||||
}
|
||||
}
|
||||
logger.info("Missing exp downloaded: " + result.size());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CardInfo> syncGetMissingCardsData(List<String> classNames) {
|
||||
List<CardInfo> res = CardRepository.instance.getMissingCards(classNames);
|
||||
logger.info("Missing cards downloaded: " + res.size());
|
||||
return res;
|
||||
}
|
||||
|
||||
private static class GetPromotionMessagesAction extends ActionWithNullNegativeResult<Object> {
|
||||
@Override
|
||||
public Object execute() throws MageException {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue