From caa219f8d68bb0029eca87c5ac5f555a2dd5b92c Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Fri, 6 Aug 2021 03:44:54 +0430 Subject: [PATCH] remove not used types --- .../src/main/kotlin/suwayomi/tachidesk/manga/impl/Source.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Source.kt b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Source.kt index d17c4406..c91e771a 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Source.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Source.kt @@ -112,10 +112,6 @@ object Source { val newValue = when (pref.defaultValueType) { "String" -> change.value - "Int" -> change.value.toInt() - "Long" -> change.value.toLong() - "Float" -> change.value.toLong() - "Double" -> change.value.toDouble() "Boolean" -> change.value.toBoolean() else -> throw RuntimeException("Unsupported type conversion") }