remove not used types

This commit is contained in:
Aria Moradi
2021-08-06 03:44:54 +04:30
parent afabaccf1d
commit caa219f8d6

View File

@@ -112,10 +112,6 @@ object Source {
val newValue = when (pref.defaultValueType) { val newValue = when (pref.defaultValueType) {
"String" -> change.value "String" -> change.value
"Int" -> change.value.toInt()
"Long" -> change.value.toLong()
"Float" -> change.value.toLong()
"Double" -> change.value.toDouble()
"Boolean" -> change.value.toBoolean() "Boolean" -> change.value.toBoolean()
else -> throw RuntimeException("Unsupported type conversion") else -> throw RuntimeException("Unsupported type conversion")
} }