mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Refactor: clean up getAllSetNames (#9246)
This commit is contained in:
parent
46a32d0fc9
commit
702cfcaa86
1 changed files with 0 additions and 16 deletions
|
@ -206,22 +206,6 @@ public enum ExpansionRepository {
|
|||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
public List<String> getAllSetNames() {
|
||||
try {
|
||||
QueryBuilder<ExpansionInfo, Object> qb = expansionDao.queryBuilder();
|
||||
qb.orderBy("releaseDate", true);
|
||||
List<ExpansionInfo> expansions = expansionDao.query(qb.prepare());
|
||||
List<String> setNames = new LinkedList<>();
|
||||
for (ExpansionInfo expansionInfo : expansions) {
|
||||
setNames.add(expansionInfo.getName());
|
||||
}
|
||||
return setNames;
|
||||
} catch (SQLException ex) {
|
||||
logger.error(ex);
|
||||
}
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
public long getContentVersionFromDB() {
|
||||
try {
|
||||
ConnectionSource connectionSource = new JdbcConnectionSource(JDBC_URL);
|
||||
|
|
Loading…
Reference in a new issue