Refactor: clean up getAllSetNames (#9246)

This commit is contained in:
DeepCrimson 2022-07-08 18:19:59 -07:00 committed by GitHub
parent 46a32d0fc9
commit 702cfcaa86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);