From cdaae2f9fa0b30f57b7b98fbf11c5747e098dc73 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 25 Feb 2025 21:54:18 +0700 Subject: [PATCH] Remove unused class --- .../mc/otm/container/MatteryContainer.kt | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/container/MatteryContainer.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/container/MatteryContainer.kt index 20d103927..c201c6706 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/container/MatteryContainer.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/container/MatteryContainer.kt @@ -81,30 +81,6 @@ open class MatteryContainer(var listener: ContainerListener, private val size: I var changeset = 0 private set - inner class Cache(private val supplier: (MatteryContainer) -> T) : Supplier { - private var thisChangeset = -1 - private var value: T? = null - private var isDisabled = false - - fun disable() { - isDisabled = true - } - - fun enable() { - isDisabled = false - } - - override fun get(): T { - if (thisChangeset == changeset && !isDisabled) { - return value as T - } - - value = supplier.invoke(this@MatteryContainer) - thisChangeset = changeset - return value as T - } - } - fun clearSlotFilters() { Arrays.fill(filters, null) }