From ad5837b519cba819d0d4da878f6ab2e0fde3938c Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Wed, 19 Sep 2018 13:01:31 +0300 Subject: [PATCH] [Debt] Removed CacheSystem.getInstance() method This deprecated method was no longer in use. --- .../com/djrapitops/plan/system/cache/CacheSystem.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/system/cache/CacheSystem.java b/Plan/src/main/java/com/djrapitops/plan/system/cache/CacheSystem.java index a6e0e5b58..152cc6f10 100644 --- a/Plan/src/main/java/com/djrapitops/plan/system/cache/CacheSystem.java +++ b/Plan/src/main/java/com/djrapitops/plan/system/cache/CacheSystem.java @@ -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();