Rename DummyLocalTransformer to UnusedLocalTransformer

This is more consistent with the Unused{Arg,Method}Transformers.

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 5 years ago
parent ff594848d5
commit 962b494a86
  1. 4
      deob/src/main/java/dev/openrs2/deob/Deobfuscator.kt
  2. 2
      deob/src/main/java/dev/openrs2/deob/transform/UnusedLocalTransformer.kt

@ -15,7 +15,6 @@ import dev.openrs2.deob.transform.CanvasTransformer
import dev.openrs2.deob.transform.ClassLiteralTransformer
import dev.openrs2.deob.transform.ConstantArgTransformer
import dev.openrs2.deob.transform.CounterTransformer
import dev.openrs2.deob.transform.DummyLocalTransformer
import dev.openrs2.deob.transform.EmptyClassTransformer
import dev.openrs2.deob.transform.ExceptionTracingTransformer
import dev.openrs2.deob.transform.FernflowerExceptionTransformer
@ -34,6 +33,7 @@ import dev.openrs2.deob.transform.RemapTransformer
import dev.openrs2.deob.transform.ResetTransformer
import dev.openrs2.deob.transform.StaticScramblingTransformer
import dev.openrs2.deob.transform.UnusedArgTransformer
import dev.openrs2.deob.transform.UnusedLocalTransformer
import dev.openrs2.deob.transform.UnusedMethodTransformer
import dev.openrs2.deob.transform.VisibilityTransformer
import java.nio.file.Files
@ -156,7 +156,7 @@ class Deobfuscator(private val input: Path, private val output: Path) {
BitwiseOpTransformer(),
RemapTransformer(),
ConstantArgTransformer(),
DummyLocalTransformer(),
UnusedLocalTransformer(),
UnusedArgTransformer(),
UnusedMethodTransformer(),
CounterTransformer(),

@ -13,7 +13,7 @@ import org.objectweb.asm.tree.ClassNode
import org.objectweb.asm.tree.MethodNode
import org.objectweb.asm.tree.VarInsnNode
class DummyLocalTransformer : Transformer() {
class UnusedLocalTransformer : Transformer() {
private var localsRemoved = 0
override fun preTransform(classPath: ClassPath) {
Loading…
Cancel
Save