Remove some dead code
This commit is contained in:
+5
-5
@@ -38,6 +38,10 @@ class MigrationSourcesPresenter(
|
||||
.subscribeLatestCache(MigrationSourcesController::setSources)
|
||||
}
|
||||
|
||||
fun requestSortUpdate() {
|
||||
sortRelay.call(Unit)
|
||||
}
|
||||
|
||||
private fun findSourcesWithManga(library: List<Manga>): List<SourceItem> {
|
||||
val header = SelectionHeader()
|
||||
return library
|
||||
@@ -51,7 +55,7 @@ class MigrationSourcesPresenter(
|
||||
.toList()
|
||||
}
|
||||
|
||||
fun sortFn(): java.util.Comparator<SourceItem> {
|
||||
private fun sortFn(): java.util.Comparator<SourceItem> {
|
||||
val sort by lazy {
|
||||
preferences.migrationSortingMode().get()
|
||||
}
|
||||
@@ -75,8 +79,4 @@ class MigrationSourcesPresenter(
|
||||
MigrationSourcesController.DirectionSetting.DESCENDING -> Collections.reverseOrder(sortFn)
|
||||
}
|
||||
}
|
||||
|
||||
fun requestSortUpdate() {
|
||||
sortRelay.call(Unit)
|
||||
}
|
||||
}
|
||||
|
||||
+1
-6
@@ -28,7 +28,7 @@ import uy.kohesive.injekt.injectLazy
|
||||
*/
|
||||
open class GlobalSearchController(
|
||||
protected val initialQuery: String? = null,
|
||||
protected val extensionFilter: String? = null,
|
||||
private val extensionFilter: String? = null,
|
||||
) : SearchableNucleusController<GlobalSearchControllerBinding, GlobalSearchPresenter>(),
|
||||
GlobalSearchCardAdapter.OnMangaClickListener,
|
||||
GlobalSearchAdapter.OnTitleClickListener {
|
||||
@@ -55,11 +55,6 @@ open class GlobalSearchController(
|
||||
return presenter.query
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the [GlobalSearchPresenter] used in controller.
|
||||
*
|
||||
* @return instance of [GlobalSearchPresenter]
|
||||
*/
|
||||
override fun createPresenter(): GlobalSearchPresenter {
|
||||
return GlobalSearchPresenter(initialQuery, extensionFilter)
|
||||
}
|
||||
|
||||
+2
-2
@@ -35,8 +35,8 @@ import uy.kohesive.injekt.injectLazy
|
||||
* @param preferences manages the preference calls.
|
||||
*/
|
||||
open class GlobalSearchPresenter(
|
||||
val initialQuery: String? = "",
|
||||
val initialExtensionFilter: String? = null,
|
||||
private val initialQuery: String? = "",
|
||||
private val initialExtensionFilter: String? = null,
|
||||
val sourceManager: SourceManager = Injekt.get(),
|
||||
val db: DatabaseHelper = Injekt.get(),
|
||||
val preferences: PreferencesHelper = Injekt.get(),
|
||||
|
||||
Reference in New Issue
Block a user