refactor(backup): Remove broken sources from backup

Doesn't seem to be used, relic from the past?
This commit is contained in:
Ahmad Ansori Palembani 2024-10-13 19:12:22 +07:00
parent 193d50d0d6
commit 5160fabfde
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
2 changed files with 3 additions and 4 deletions

View file

@ -78,7 +78,6 @@ class BackupCreator(
val backup = Backup(
backupManga = backupManga,
backupCategories = categoriesBackupCreator(options),
backupBrokenSources = emptyList(),
backupSources = sourcesBackupCreator(backupManga),
backupPreferences = preferenceBackupCreator.backupAppPreferences(options),
backupSourcePreferences = preferenceBackupCreator.backupSourcePreferences(options),

View file

@ -1,17 +1,17 @@
package eu.kanade.tachiyomi.data.backup.models
import eu.kanade.tachiyomi.BuildConfig
import kotlinx.serialization.Serializable
import kotlinx.serialization.protobuf.ProtoNumber
import java.text.SimpleDateFormat
import java.util.Date
import java.util.Locale
import kotlinx.serialization.Serializable
import kotlinx.serialization.protobuf.ProtoNumber
@Serializable
data class Backup(
@ProtoNumber(1) val backupManga: List<BackupManga>,
@ProtoNumber(2) var backupCategories: List<BackupCategory> = emptyList(),
@ProtoNumber(100) var backupBrokenSources: List<BrokenBackupSource> = emptyList(),
//@ProtoNumber(100) var backupBrokenSources: List<BrokenBackupSource> = emptyList(),
@ProtoNumber(101) var backupSources: List<BackupSource> = emptyList(),
@ProtoNumber(104) var backupPreferences: List<BackupPreference> = emptyList(),
@ProtoNumber(105) var backupSourcePreferences: List<BackupSourcePreferences> = emptyList(),