Simplify excluding the opaque predicate when removing the initializer

bzip2
Graham 5 years ago
parent 70d46e7f64
commit 9cbe8b5b28
  1. 6
      deob/src/main/java/dev/openrs2/deob/transform/OpaquePredicateTransformer.kt

@ -46,11 +46,7 @@ class OpaquePredicateTransformer : Transformer() {
// remove initializer (except the opaque predicate at the start, // remove initializer (except the opaque predicate at the start,
// which we treat like any other) // which we treat like any other)
for ((i, insn) in match.withIndex()) { match.drop(2).forEach(method.instructions::remove)
if (i >= 2) {
method.instructions.remove(insn)
}
}
// remove field // remove field
val owner = library[putstatic.owner]!! val owner = library[putstatic.owner]!!

Loading…
Cancel
Save