mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-08-26 22:49:51 +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;
|
||||
|
||||
import com.djrapitops.plan.api.exceptions.EnableException;
|
||||
import com.djrapitops.plan.system.PlanSystem;
|
||||
import com.djrapitops.plan.system.SubSystem;
|
||||
import com.djrapitops.plugin.utilities.Verify;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
|
@ -27,13 +25,6 @@ public class CacheSystem implements SubSystem {
|
|||
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
|
||||
public void enable() throws EnableException {
|
||||
dataCache.enable();
|
||||
|
|
Loading…
Reference in New Issue
Block a user