[Debt] Removed CacheSystem.getInstance() method

This deprecated method was no longer in use.
This commit is contained in:
Rsl1122 2018-09-19 13:01:31 +03:00
parent eb91fbc990
commit ad5837b519

View File

@ -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();