Remove redundant generic type parameter

It can be figured out by type inference.

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 5 years ago
parent 09f17d246b
commit 95c5ad0ffe
  1. 3
      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.VarInsnNode
import org.objectweb.asm.tree.analysis.Analyzer import org.objectweb.asm.tree.analysis.Analyzer
import org.objectweb.asm.tree.analysis.BasicInterpreter import org.objectweb.asm.tree.analysis.BasicInterpreter
import org.objectweb.asm.tree.analysis.BasicValue
private fun localIndex(access: Int, argTypes: Array<Type>, argIndex: Int): Int { private fun localIndex(access: Int, argTypes: Array<Type>, argIndex: Int): Int {
var localIndex = 0 var localIndex = 0
@ -106,7 +105,7 @@ fun MethodNode.removeDeadCode(owner: String) {
do { do {
changed = false changed = false
val analyzer = Analyzer<BasicValue>(BasicInterpreter()) val analyzer = Analyzer(BasicInterpreter())
val frames = analyzer.analyze(owner, this) val frames = analyzer.analyze(owner, this)
val deadLabels = mutableSetOf<LabelNode>() val deadLabels = mutableSetOf<LabelNode>()

Loading…
Cancel
Save