diff --git a/deob/src/main/java/dev/openrs2/deob/remap/TypedRemapper.kt b/deob/src/main/java/dev/openrs2/deob/remap/TypedRemapper.kt index 47505174..ac537a24 100644 --- a/deob/src/main/java/dev/openrs2/deob/remap/TypedRemapper.kt +++ b/deob/src/main/java/dev/openrs2/deob/remap/TypedRemapper.kt @@ -218,23 +218,6 @@ class TypedRemapper private constructor( return generateName(prefixes, prefix.indefiniteArticle() + prefix.capitalize()) } - fun isMethodRenamable(classPath: ClassPath, partition: DisjointSet.Partition): Boolean { - for (method in partition) { - val clazz = classPath[method.owner]!! - - if (method.name in EXCLUDED_METHODS || clazz.dependency) { - return false - } - - val access = clazz.getAccess(MemberDesc(method)) - if (access != null && access and Opcodes.ACC_NATIVE != 0) { - return false - } - } - - return true - } - private fun createMethodMapping( classPath: ClassPath, disjointSet: DisjointSet @@ -255,5 +238,22 @@ class TypedRemapper private constructor( return mapping } + + fun isMethodRenamable(classPath: ClassPath, partition: DisjointSet.Partition): Boolean { + for (method in partition) { + val clazz = classPath[method.owner]!! + + if (method.name in EXCLUDED_METHODS || clazz.dependency) { + return false + } + + val access = clazz.getAccess(MemberDesc(method)) + if (access != null && access and Opcodes.ACC_NATIVE != 0) { + return false + } + } + + return true + } } }