Remove old backup code I tried for dummy restore

This commit is contained in:
Jobobby04 2020-10-24 13:39:04 -04:00
parent 024a39d06b
commit b850a8729f

View File

@ -345,17 +345,7 @@ class LegacyBackupManager(context: Context, version: Int = CURRENT_VERSION) : Ab
} else {
source.fetchChapterList(manga)
}
).map {
if (it.last().chapter_number == -99F) {
chapters.forEach { chapter ->
chapter.name =
"Chapter ${chapter.chapter_number} restored by dummy source"
}
syncChaptersWithSource(databaseHelper, chapters, manga, source)
} else {
syncChaptersWithSource(databaseHelper, it, manga, source)
}
}
).map { syncChaptersWithSource(databaseHelper, it, manga, source) }
// SY <--
.doOnNext { pair ->
if (pair.first.isNotEmpty()) {