mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-08-26 22:49:51 +02: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.store.keys.SessionKeys;
|
||||
import com.djrapitops.plan.system.database.databases.Database;
|
||||
import com.djrapitops.plugin.utilities.Verify;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
@ -26,13 +25,6 @@ public class SessionCache {
|
|||
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() {
|
||||
return activeSessions;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user