mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
Removed unused code.
This commit is contained in:
parent
d25684614c
commit
abb2efa25c
1 changed files with 2 additions and 10 deletions
|
@ -27,8 +27,6 @@
|
||||||
*/
|
*/
|
||||||
package mage.server;
|
package mage.server;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
|
@ -41,7 +39,9 @@ import org.jboss.remoting.callback.InvokerCallbackHandler;
|
||||||
* @author BetaSteward_at_googlemail.com
|
* @author BetaSteward_at_googlemail.com
|
||||||
*/
|
*/
|
||||||
public enum SessionManager {
|
public enum SessionManager {
|
||||||
|
|
||||||
instance;
|
instance;
|
||||||
|
|
||||||
private static final Logger logger = Logger.getLogger(SessionManager.class);
|
private static final Logger logger = Logger.getLogger(SessionManager.class);
|
||||||
|
|
||||||
private final ConcurrentHashMap<String, Session> sessions = new ConcurrentHashMap<>();
|
private final ConcurrentHashMap<String, Session> sessions = new ConcurrentHashMap<>();
|
||||||
|
@ -153,14 +153,6 @@ public enum SessionManager {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<String, Session> getSessions() {
|
|
||||||
Map<String, Session> map = new HashMap<>();
|
|
||||||
for (Map.Entry<String, Session> entry : sessions.entrySet()) {
|
|
||||||
map.put(entry.getKey(), entry.getValue());
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Admin requested the disconnect of a user
|
* Admin requested the disconnect of a user
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue