From 862c79e31c636a236ded32552bde4d340bba9aa0 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 22 Dec 2019 15:34:50 +0000 Subject: [PATCH] Rename deleteArgument() to removeArgument() for consistency --- asm/src/main/java/dev/openrs2/asm/MethodNodeUtils.java | 2 +- .../java/dev/openrs2/deob/transform/UnusedArgTransformer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/asm/src/main/java/dev/openrs2/asm/MethodNodeUtils.java b/asm/src/main/java/dev/openrs2/asm/MethodNodeUtils.java index dfbff08b..b2f306a1 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 4153e2c4..97e52dc3 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++; } }