cleanup MangaDetailsPresenter

This commit is contained in:
Jays2Kings 2023-03-20 19:38:05 -04:00
parent e0be6e57b1
commit c1f95a3a36

View file

@ -694,13 +694,6 @@ class MangaDetailsPresenter(
}
}
fun setFavorite(favorite: Boolean) {
if (manga.favorite == favorite) {
return
}
toggleFavorite()
}
override fun onUpdateManga(manga: Manga?) {
if (manga?.id == this.manga.id) {
fetchChapters()
@ -719,7 +712,7 @@ class MangaDetailsPresenter(
withUIContext {
controller?.shareManga(file)
}
} catch (e: java.lang.Exception) {
} catch (_: java.lang.Exception) {
}
}
}