From 046b9b3a0ac65a8d26ba0a6e6ab1705f65a101a6 Mon Sep 17 00:00:00 2001 From: Dark25 Date: Wed, 18 Sep 2024 21:03:14 +0200 Subject: [PATCH] Feat(lib/ChillxExtractor): clear --- .../tachiyomi/lib/chillxextractor/ChillxExtractor.kt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/chillx-extractor/src/main/java/eu/kanade/tachiyomi/lib/chillxextractor/ChillxExtractor.kt b/lib/chillx-extractor/src/main/java/eu/kanade/tachiyomi/lib/chillxextractor/ChillxExtractor.kt index 2e4d7f821c..b93dd2e6e5 100644 --- a/lib/chillx-extractor/src/main/java/eu/kanade/tachiyomi/lib/chillxextractor/ChillxExtractor.kt +++ b/lib/chillx-extractor/src/main/java/eu/kanade/tachiyomi/lib/chillxextractor/ChillxExtractor.kt @@ -13,7 +13,6 @@ import kotlinx.serialization.json.Json import okhttp3.Headers import okhttp3.OkHttpClient import uy.kohesive.injekt.injectLazy -import java.net.URI class ChillxExtractor(private val client: OkHttpClient, private val headers: Headers) { private val json: Json by injectLazy() @@ -75,14 +74,6 @@ class ChillxExtractor(private val client: OkHttpClient, private val headers: Hea } } - private fun String.getHost(): String { - return fixTitle(URI(this).host.substringBeforeLast(".").substringAfterLast(".")) - } - - private fun fixTitle(title: String): String { - return title.replaceFirstChar { if (it.isLowerCase()) it.titlecase() else it.toString() } - } - @Serializable data class CryptoInfo( @SerialName("ct") val ciphertext: String,