Remove unused class

This commit is contained in:
DBotThePony 2025-02-25 21:54:18 +07:00
parent 736da72ca7
commit cdaae2f9fa
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -81,30 +81,6 @@ open class MatteryContainer(var listener: ContainerListener, private val size: I
var changeset = 0
private set
inner class Cache<T>(private val supplier: (MatteryContainer) -> T) : Supplier<T> {
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)
}