aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-10-01 18:45:07 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-10-01 18:45:07 +0200
commit6294c1e84663a92964326105c4e25bc970a29394 (patch)
tree5cc945d0339a7fd3cb07aa10ede41d95e9ad75c4 /src/main/java/at/hannibal2/skyhanni/utils
parent0c3a018c20392f88f746e68a12ca016acab3d1c4 (diff)
downloadskyhanni-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.kt1
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/NumberUtil.kt7
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