diff --git a/src/engine/gameManager/DbManager.java b/src/engine/gameManager/DbManager.java index 2d79b761..58a9de54 100644 --- a/src/engine/gameManager/DbManager.java +++ b/src/engine/gameManager/DbManager.java @@ -22,7 +22,6 @@ import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.EnumMap; -import java.util.EnumSet; import java.util.concurrent.ConcurrentHashMap; public enum DbManager { @@ -265,53 +264,6 @@ public enum DbManager { } - public static > EnumSet parseEnumSet(String mysqlSet, Class enumClass) { - - // Create empty output set of the passed Enum class - - EnumSet enumSet = EnumSet.noneOf(enumClass); - - // Early exit for empty sets - - if (mysqlSet.isEmpty()) - return enumSet; - - // Split set string and trim each element - - String[] elements = mysqlSet.split(";"); - - for (String element : elements) { - - element = element.trim(); - - // Parse the element into an enum; add to the output set - - try { - E enumConstant = java.lang.Enum.valueOf(enumClass, element); - enumSet.add(enumConstant); - } catch (Exception e) { - Logger.error(" Parse error: " + mysqlSet); - } - } - - // Return the output set - - return enumSet; - } - - public static void printCacheCount(PlayerCharacter pc) { - ChatManager.chatSystemInfo(pc, "Cache Lists"); - - for (GameObjectType gameObjectType : GameObjectType.values()) { - - if (objectCache.get(gameObjectType) == null) - continue; - - String ret = gameObjectType.name() + ": " + objectCache.get(gameObjectType).size(); - ChatManager.chatSystemInfo(pc, ret + '\n'); - } - } - /** * @return the conn */