瀏覽代碼

Remove some unused variables

arkon 4 年之前
父節點
當前提交
dcb6bfb18d

+ 1 - 5
app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/ExtensionAdapter.kt

@@ -2,19 +2,15 @@ package eu.kanade.tachiyomi.ui.browse.extension
 
 import eu.davidea.flexibleadapter.FlexibleAdapter
 import eu.davidea.flexibleadapter.items.IFlexible
-import eu.kanade.tachiyomi.R
-import eu.kanade.tachiyomi.util.system.getResourceColor
 
 /**
  * Adapter that holds the catalogue cards.
  *
  * @param controller instance of [ExtensionController].
  */
-class ExtensionAdapter(val controller: ExtensionController) :
+class ExtensionAdapter(controller: ExtensionController) :
     FlexibleAdapter<IFlexible<*>>(null, controller, true) {
 
-    val cardBackground = controller.activity!!.getResourceColor(R.attr.colorSurface)
-
     init {
         setDisplayHeadersAtStartUp(true)
     }

+ 1 - 5
app/src/main/java/eu/kanade/tachiyomi/ui/browse/migration/sources/SourceAdapter.kt

@@ -3,19 +3,15 @@ package eu.kanade.tachiyomi.ui.browse.migration.sources
 import com.bluelinelabs.conductor.Controller
 import eu.davidea.flexibleadapter.FlexibleAdapter
 import eu.davidea.flexibleadapter.items.IFlexible
-import eu.kanade.tachiyomi.R
-import eu.kanade.tachiyomi.util.system.getResourceColor
 
 /**
  * Adapter that holds the catalogue cards.
  *
  * @param controller instance of [MigrationController].
  */
-class SourceAdapter(val controller: Controller) :
+class SourceAdapter(controller: Controller) :
     FlexibleAdapter<IFlexible<*>>(null, controller, true) {
 
-    val cardBackground = controller.activity!!.getResourceColor(R.attr.colorSurface)
-
     init {
         setDisplayHeadersAtStartUp(true)
     }

+ 1 - 5
app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/SourceAdapter.kt

@@ -2,19 +2,15 @@ package eu.kanade.tachiyomi.ui.browse.source
 
 import eu.davidea.flexibleadapter.FlexibleAdapter
 import eu.davidea.flexibleadapter.items.IFlexible
-import eu.kanade.tachiyomi.R
-import eu.kanade.tachiyomi.util.system.getResourceColor
 
 /**
  * Adapter that holds the catalogue cards.
  *
  * @param controller instance of [SourceController].
  */
-class SourceAdapter(val controller: SourceController) :
+class SourceAdapter(controller: SourceController) :
     FlexibleAdapter<IFlexible<*>>(null, controller, true) {
 
-    val cardBackground = controller.activity!!.getResourceColor(R.attr.colorSurface)
-
     init {
         setDisplayHeadersAtStartUp(true)
     }

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/ui/manga/chapter/ChaptersAdapter.kt

@@ -16,7 +16,7 @@ class ChaptersAdapter(
     context: Context
 ) : FlexibleAdapter<ChapterItem>(null, controller, true) {
 
-    val preferences: PreferencesHelper by injectLazy()
+    private val preferences: PreferencesHelper by injectLazy()
 
     var items: List<ChapterItem> = emptyList()