image: remove dead code
This commit is contained in:
parent
1a3fe7c075
commit
ab442f99c1
3 changed files with 1 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2023 Auxio Project
|
* Copyright (c) 2023 Auxio Project
|
||||||
* ExtractorModule.kt is part of Auxio.
|
* CoilModule.kt is part of Auxio.
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -33,8 +33,6 @@ import javax.inject.Singleton
|
||||||
interface StackModule {
|
interface StackModule {
|
||||||
@Singleton @Binds fun appFiles(impl: AppFilesImpl): AppFiles
|
@Singleton @Binds fun appFiles(impl: AppFilesImpl): AppFiles
|
||||||
|
|
||||||
@Binds fun perceptualHash(perceptualHash: PerceptualHashImpl): PerceptualHash
|
|
||||||
|
|
||||||
@Binds fun coverCache(cache: CoverCacheImpl): CoverCache
|
@Binds fun coverCache(cache: CoverCacheImpl): CoverCache
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,12 +72,5 @@ constructor(private val storedCoversDao: StoredCoversDao, private val appFiles:
|
||||||
|
|
||||||
private companion object {
|
private companion object {
|
||||||
const val COVER_KEY_SAMPLE = 32
|
const val COVER_KEY_SAMPLE = 32
|
||||||
@Suppress("DEPRECATION")
|
|
||||||
val COVER_CACHE_FORMAT =
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
|
|
||||||
Bitmap.CompressFormat.WEBP_LOSSY
|
|
||||||
} else {
|
|
||||||
Bitmap.CompressFormat.WEBP
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue