From b24b16da1d19931d6d91e72bcdbebe2acd8968d0 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 26 Jan 2023 13:17:16 +0100 Subject: Code cleanup. --- src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt index faff0fb0c..cf557e1cb 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt @@ -126,21 +126,6 @@ object LorenzUtils { SkyHanniMod.consoleLog(text) } - // Taken and modified from https://stackoverflow.com/a/11306854/5507634 - fun getCallerClass(vararg skip: String): String? { - val stElements = Thread.currentThread().stackTrace - for (i in 1 until stElements.size) { - val ste = stElements[i] - val className = ste.className - if (className != LorenzUtils::class.java.name && className.indexOf("java.lang.Thread") != 0) { - if (className !in skip) { - return className - } - } - } - return null - } - fun getPointsForDojoRank(rank: String): Int { return when (rank) { "S" -> 1000 -- cgit