mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-13 15:28:13 +02:00
[Debt] Removed CacheSystem.getInstance() method
This deprecated method was no longer in use.
This commit is contained in:
parent
eb91fbc990
commit
ad5837b519
@ -5,9 +5,7 @@
|
|||||||
package com.djrapitops.plan.system.cache;
|
package com.djrapitops.plan.system.cache;
|
||||||
|
|
||||||
import com.djrapitops.plan.api.exceptions.EnableException;
|
import com.djrapitops.plan.api.exceptions.EnableException;
|
||||||
import com.djrapitops.plan.system.PlanSystem;
|
|
||||||
import com.djrapitops.plan.system.SubSystem;
|
import com.djrapitops.plan.system.SubSystem;
|
||||||
import com.djrapitops.plugin.utilities.Verify;
|
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
|
||||||
@ -27,13 +25,6 @@ public class CacheSystem implements SubSystem {
|
|||||||
this.geolocationCache = geolocationCache;
|
this.geolocationCache = geolocationCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
public static CacheSystem getInstance() {
|
|
||||||
CacheSystem cacheSystem = PlanSystem.getInstance().getCacheSystem();
|
|
||||||
Verify.nullCheck(cacheSystem, () -> new IllegalStateException("Cache System was not initialized."));
|
|
||||||
return cacheSystem;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() throws EnableException {
|
public void enable() throws EnableException {
|
||||||
dataCache.enable();
|
dataCache.enable();
|
||||||
|
Loading…
Reference in New Issue
Block a user