mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-24 03:32:39 +00:00
Remove unused function
This commit is contained in:
parent
bb3e616890
commit
9f0ed77423
1 changed files with 0 additions and 12 deletions
|
@ -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<MangaThumbnail, InputStream> {
|
|||
}.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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue