mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-06 10:49:44 +01:00
[Debt] Removed SessionCache.getInstance() method
This commit is contained in:
parent
7b09f588fe
commit
2b4e6fe9cb
@ -3,7 +3,6 @@ package com.djrapitops.plan.system.cache;
|
|||||||
import com.djrapitops.plan.data.container.Session;
|
import com.djrapitops.plan.data.container.Session;
|
||||||
import com.djrapitops.plan.data.store.keys.SessionKeys;
|
import com.djrapitops.plan.data.store.keys.SessionKeys;
|
||||||
import com.djrapitops.plan.system.database.databases.Database;
|
import com.djrapitops.plan.system.database.databases.Database;
|
||||||
import com.djrapitops.plugin.utilities.Verify;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -26,13 +25,6 @@ public class SessionCache {
|
|||||||
this.database = database;
|
this.database = database;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
public static SessionCache getInstance() {
|
|
||||||
SessionCache dataCache = CacheSystem.getInstance().getDataCache();
|
|
||||||
Verify.nullCheck(dataCache, () -> new IllegalStateException("Data Cache was not initialized."));
|
|
||||||
return dataCache;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Map<UUID, Session> getActiveSessions() {
|
public static Map<UUID, Session> getActiveSessions() {
|
||||||
return activeSessions;
|
return activeSessions;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user