1
0
mirror of https://github.com/mihonapp/mihon.git synced 2025-08-13 01:51:32 +02:00

Remove unused function

(cherry picked from commit 9f0ed77423)
This commit is contained in:
arkon
2020-05-12 22:32:56 -04:00
committed by Jobobby04
parent a0048e9397
commit 11a553cbf4

@@ -1,6 +1,5 @@
package eu.kanade.tachiyomi.data.glide package eu.kanade.tachiyomi.data.glide
import android.util.LruCache
import com.bumptech.glide.integration.okhttp3.OkHttpStreamFetcher import com.bumptech.glide.integration.okhttp3.OkHttpStreamFetcher
import com.bumptech.glide.load.Options import com.bumptech.glide.load.Options
import com.bumptech.glide.load.model.GlideUrl import com.bumptech.glide.load.model.GlideUrl
@@ -132,15 +131,4 @@ class MangaThumbnailModelLoader : ModelLoader<MangaThumbnail, InputStream> {
}.build() }.build()
} }
} }
private inline fun <K, V> LruCache<K, V>.getOrPut(key: K, defaultValue: () -> V): V {
val value = get(key)
return if (value == null) {
val answer = defaultValue()
put(key, answer)
answer
} else {
value
}
}
} }