mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
chore: Remove unused code
This commit is contained in:
parent
f73073ba64
commit
ee77e6463b
1 changed files with 0 additions and 13 deletions
|
@ -11,7 +11,6 @@ import eu.kanade.tachiyomi.data.database.models.Manga
|
|||
import eu.kanade.tachiyomi.data.database.models.MangaImpl
|
||||
import eu.kanade.tachiyomi.util.system.writeText
|
||||
import kotlinx.serialization.Serializable
|
||||
import kotlinx.serialization.encodeToString
|
||||
import kotlinx.serialization.json.Json
|
||||
import kotlinx.serialization.json.decodeFromStream
|
||||
import nl.adaptivity.xmlutil.AndroidXmlReader
|
||||
|
@ -36,18 +35,6 @@ class CustomMangaManager(val context: Context) {
|
|||
companion object {
|
||||
const val EDIT_JSON_FILE = "edits.json"
|
||||
|
||||
fun Manga.toJson(): MangaJson {
|
||||
return MangaJson(
|
||||
id!!,
|
||||
title,
|
||||
author,
|
||||
artist,
|
||||
description,
|
||||
genre?.split(", ")?.toTypedArray(),
|
||||
status.takeUnless { it == -1 },
|
||||
)
|
||||
}
|
||||
|
||||
fun Manga.toComicInfo(): ComicList.ComicInfoYokai {
|
||||
return ComicList.ComicInfoYokai(
|
||||
this.toComicInfo(null),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue