[Debt] Removed SessionCache.getInstance() method

This commit is contained in:
Rsl1122 2018-09-18 17:34:42 +03:00
parent 7b09f588fe
commit 2b4e6fe9cb

View File

@ -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;
} }