Skip to content

Commit dfe2140

Browse files
committed
slight simplification
1 parent 06fdaac commit dfe2140

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ql/ql/src/queries/performance/UnusedField.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ where
1616
implClz.getASuperType*() = clz and
1717
// The field is not accessed in the charpred (of any of the classes)
1818
not exists(FieldAccess access |
19-
access.getEnclosingPredicate() =
20-
[clz.getDeclaration().getCharPred(), implClz.getDeclaration().getCharPred()]
19+
access.getEnclosingPredicate() = [clz, implClz].getDeclaration().getCharPred()
2120
) and
2221
// The implementation class is not abstract, and the field is not an override
2322
not implClz.getDeclaration().isAbstract() and

0 commit comments

Comments
 (0)