Skip to content

Commit 8eb6edb

Browse files
authored
Merge pull request #2055 from MarcMil/tableext
Remove unnecessary check for hierarchy
2 parents 23f8c5c + a3d6871 commit 8eb6edb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main/java/soot/FastHierarchy.java

-5
Original file line numberDiff line numberDiff line change
@@ -878,12 +878,7 @@ private SootMethod resolveMethod(final SootClass baseType, final SootClass decla
878878
// When there is no proper dispatch found, we simply return null to let the caller decide what to do
879879
SootMethod candidate = null;
880880
boolean calleeExist = declaringClass.getMethodUnsafe(subsignature) != null;
881-
SootClass prevType = null;
882881
for (SootClass concreteType = baseType; concreteType != null;) {
883-
if (concreteType == prevType) {
884-
break;
885-
}
886-
prevType = concreteType;
887882
candidate = getSignaturePolymorphicMethod(concreteType, name, parameterTypes, returnType);
888883
if (candidate != null) {
889884
if (!calleeExist || isVisible(concreteType, declaringClass, candidate.getModifiers())) {

0 commit comments

Comments
 (0)