Remove unused classAccess argument from getVisibility

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 5 years ago
parent 0bd10234b8
commit 7740b13a29
  1. 3
      deob/src/main/java/dev/openrs2/deob/transform/VisibilityTransformer.kt

@ -54,7 +54,6 @@ class VisibilityTransformer @Inject constructor(private val profile: Profile) :
references: Multimap<DisjointSet.Partition<MemberRef>, String>, references: Multimap<DisjointSet.Partition<MemberRef>, String>,
disjointSet: DisjointSet<MemberRef>, disjointSet: DisjointSet<MemberRef>,
member: MemberRef, member: MemberRef,
classAccess: Int,
access: Int access: Int
): Int { ): Int {
val method = Type.getType(member.desc).sort == Type.METHOD val method = Type.getType(member.desc).sort == Type.METHOD
@ -119,7 +118,6 @@ class VisibilityTransformer @Inject constructor(private val profile: Profile) :
fieldReferences, fieldReferences,
inheritedFieldSets, inheritedFieldSets,
MemberRef(clazz, field), MemberRef(clazz, field),
clazz.access,
access access
) )
field.access = (access and VISIBILITY_FLAGS.inv()) or visibility field.access = (access and VISIBILITY_FLAGS.inv()) or visibility
@ -137,7 +135,6 @@ class VisibilityTransformer @Inject constructor(private val profile: Profile) :
methodReferences, methodReferences,
inheritedMethodSets, inheritedMethodSets,
MemberRef(clazz, method), MemberRef(clazz, method),
clazz.access,
access access
) )
method.access = (access and VISIBILITY_FLAGS.inv()) or visibility method.access = (access and VISIBILITY_FLAGS.inv()) or visibility

Loading…
Cancel
Save