diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-10-01 18:45:07 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-10-01 18:45:07 +0200 |
commit | 6294c1e84663a92964326105c4e25bc970a29394 (patch) | |
tree | 5cc945d0339a7fd3cb07aa10ede41d95e9ad75c4 /src/main/java/at/hannibal2/skyhanni/utils | |
parent | 0c3a018c20392f88f746e68a12ca016acab3d1c4 (diff) | |
download | skyhanni-6294c1e84663a92964326105c4e25bc970a29394.tar.gz skyhanni-6294c1e84663a92964326105c4e25bc970a29394.tar.bz2 skyhanni-6294c1e84663a92964326105c4e25bc970a29394.zip |
removed some @JvmStatic calls
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/MinecraftConsoleFilter.kt | 1 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt | 7 |
2 files changed, 0 insertions, 8 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/MinecraftConsoleFilter.kt b/src/main/java/at/hannibal2/skyhanni/utils/MinecraftConsoleFilter.kt index e7ef6d653..c0e64c7be 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/MinecraftConsoleFilter.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/MinecraftConsoleFilter.kt @@ -19,7 +19,6 @@ class MinecraftConsoleFilter(private val loggerConfigName: String) : Filter { private val patternBiomeIdBounds = Pattern.compile("Biome ID is out of bounds: (\\d+), defaulting to 0 \\(Ocean\\)") companion object { - @JvmStatic fun initLogging() { val ctx: LoggerContext = LogManager.getContext(false) as LoggerContext diff --git a/src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt b/src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt index 86829a4b0..d8e619d78 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt @@ -54,13 +54,6 @@ object NumberUtil { return if (hasDecimal) (truncated / 10.0).toString() + suffix else (truncated / 10).toString() + suffix } - @JvmStatic - fun unformat(value: String): Long { - val suffix = value.filter { !it.isDigit() }.lowercase() - val num = value.filter { it.isDigit() }.toLong() - return num * (suffixes.entries.find { it.value.lowercase() == suffix }?.key ?: 1) - } - /** * This code was unmodified and taken under CC BY-SA 3.0 license * @link https://stackoverflow.com/a/22186845 |