Rename deleteArgument() to removeArgument() for consistency

bzip2
Graham 5 years ago
parent e68fed7a9e
commit 862c79e31c
  1. 2
      asm/src/main/java/dev/openrs2/asm/MethodNodeUtils.java
  2. 2
      deob/src/main/java/dev/openrs2/deob/transform/UnusedArgTransformer.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);

@ -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++;
}
}

Loading…
Cancel
Save