diff --git a/Mage.Server/src/main/java/mage/server/SessionManager.java b/Mage.Server/src/main/java/mage/server/SessionManager.java index e32be43897..b3d9c0db00 100644 --- a/Mage.Server/src/main/java/mage/server/SessionManager.java +++ b/Mage.Server/src/main/java/mage/server/SessionManager.java @@ -27,8 +27,6 @@ */ package mage.server; -import java.util.HashMap; -import java.util.Map; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; import javax.annotation.Nonnull; @@ -41,7 +39,9 @@ import org.jboss.remoting.callback.InvokerCallbackHandler; * @author BetaSteward_at_googlemail.com */ public enum SessionManager { + instance; + private static final Logger logger = Logger.getLogger(SessionManager.class); private final ConcurrentHashMap sessions = new ConcurrentHashMap<>(); @@ -153,14 +153,6 @@ public enum SessionManager { } - public Map getSessions() { - Map map = new HashMap<>(); - for (Map.Entry entry : sessions.entrySet()) { - map.put(entry.getKey(), entry.getValue()); - } - return map; - } - /** * Admin requested the disconnect of a user *