image: remove dead code

This commit is contained in:
Alexander Capehart 2024-11-29 10:06:26 -07:00
parent 1a3fe7c075
commit ab442f99c1
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
3 changed files with 1 additions and 10 deletions

View file

@ -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

View file

@ -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
} }

View file

@ -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
}
} }
} }