From 95c5ad0ffebdaadd88147055c22dd507ef9c3202 Mon Sep 17 00:00:00 2001 From: Graham Date: Thu, 9 Apr 2020 20:02:24 +0100 Subject: [PATCH] Remove redundant generic type parameter It can be figured out by type inference. Signed-off-by: Graham --- asm/src/main/java/dev/openrs2/asm/MethodNodeUtils.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/asm/src/main/java/dev/openrs2/asm/MethodNodeUtils.kt b/asm/src/main/java/dev/openrs2/asm/MethodNodeUtils.kt index b02922b85a..f690d80c70 100644 --- a/asm/src/main/java/dev/openrs2/asm/MethodNodeUtils.kt +++ b/asm/src/main/java/dev/openrs2/asm/MethodNodeUtils.kt @@ -9,7 +9,6 @@ import org.objectweb.asm.tree.MethodNode import org.objectweb.asm.tree.VarInsnNode import org.objectweb.asm.tree.analysis.Analyzer import org.objectweb.asm.tree.analysis.BasicInterpreter -import org.objectweb.asm.tree.analysis.BasicValue private fun localIndex(access: Int, argTypes: Array, argIndex: Int): Int { var localIndex = 0 @@ -106,7 +105,7 @@ fun MethodNode.removeDeadCode(owner: String) { do { changed = false - val analyzer = Analyzer(BasicInterpreter()) + val analyzer = Analyzer(BasicInterpreter()) val frames = analyzer.analyze(owner, this) val deadLabels = mutableSetOf()