From 9f0ed774230bf8bed21cf125e97b28072abbb335 Mon Sep 17 00:00:00 2001 From: arkon Date: Tue, 12 May 2020 22:32:56 -0400 Subject: [PATCH] Remove unused function --- .../data/glide/MangaThumbnailModelLoader.kt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/glide/MangaThumbnailModelLoader.kt b/app/src/main/java/eu/kanade/tachiyomi/data/glide/MangaThumbnailModelLoader.kt index 3573246f5e..ca478cc74f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/glide/MangaThumbnailModelLoader.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/glide/MangaThumbnailModelLoader.kt @@ -1,6 +1,5 @@ package eu.kanade.tachiyomi.data.glide -import android.util.LruCache import com.bumptech.glide.integration.okhttp3.OkHttpStreamFetcher import com.bumptech.glide.load.Options import com.bumptech.glide.load.model.GlideUrl @@ -132,15 +131,4 @@ class MangaThumbnailModelLoader : ModelLoader { }.build() } } - - private inline fun LruCache.getOrPut(key: K, defaultValue: () -> V): V { - val value = get(key) - return if (value == null) { - val answer = defaultValue() - put(key, answer) - answer - } else { - value - } - } }