diff --git a/asm/src/main/java/dev/openrs2/asm/MethodNodeUtils.java b/asm/src/main/java/dev/openrs2/asm/MethodNodeUtils.java index dfbff08b73..b2f306a1cf 100644 --- a/asm/src/main/java/dev/openrs2/asm/MethodNodeUtils.java +++ b/asm/src/main/java/dev/openrs2/asm/MethodNodeUtils.java @@ -44,7 +44,7 @@ public final class MethodNodeUtils { .collect(Collectors.toList()); } - public static void deleteArgument(MethodNode method, int argIndex) { + public static void removeArgument(MethodNode method, int argIndex) { /* remove argument from the signature */ var type = Type.getType(method.desc); diff --git a/deob/src/main/java/dev/openrs2/deob/transform/UnusedArgTransformer.java b/deob/src/main/java/dev/openrs2/deob/transform/UnusedArgTransformer.java index 4153e2c4c5..97e52dc3a9 100644 --- a/deob/src/main/java/dev/openrs2/deob/transform/UnusedArgTransformer.java +++ b/deob/src/main/java/dev/openrs2/deob/transform/UnusedArgTransformer.java @@ -185,7 +185,7 @@ public final class UnusedArgTransformer extends Transformer { for (var i = argTypes.length - 1; i >= 0; i--) { var argType = argTypes[i]; if (INT_SORTS.contains(argType.getSort()) && !retainedArgs.contains(new ArgRef(partition, i))) { - MethodNodeUtils.deleteArgument(method, i); + MethodNodeUtils.removeArgument(method, i); deletedArgs++; } }