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,
// which we treat like any other)
for ((i, insn) in match.withIndex()) {
if (i >= 2) {
method.instructions.remove(insn)
}
}
match.drop(2).forEach(method.instructions::remove)
// remove field
val owner = library[putstatic.owner]!!

Loading…
Cancel
Save