File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,15 @@ private ClassPredicate getUltimateDef(ClassPredicate p) {
30
30
}
31
31
32
32
predicate redundantOverride ( ClassPredicate pred , ClassPredicate sup ) {
33
- exists ( MemberCall mc |
34
- forwardingOverride ( pred , mc , sup ) and
35
- // overridden to provide more precise QL doc
36
- not exists ( pred .getQLDoc ( ) ) and
37
- // overridden to disambiguate
38
- not exists ( ClassPredicate other |
39
- getUltimateDef ( sup ) != getUltimateDef ( other ) and
40
- pred .getDeclaringType ( ) .getASuperType + ( ) = other .getDeclaringType ( ) and
41
- not sup .overrides * ( other ) and
42
- other .getName ( ) = pred .getName ( ) and
43
- other .getArity ( ) = pred .getArity ( )
44
- )
33
+ forwardingOverride ( pred , _, sup ) and
34
+ // overridden to provide more precise QL doc
35
+ not exists ( pred .getQLDoc ( ) ) and
36
+ // overridden to disambiguate
37
+ not exists ( ClassPredicate other |
38
+ getUltimateDef ( sup ) != getUltimateDef ( other ) and
39
+ pred .getDeclaringType ( ) .getASuperType + ( ) = other .getDeclaringType ( ) and
40
+ not sup .overrides * ( other ) and
41
+ other .getName ( ) = pred .getName ( ) and
42
+ other .getArity ( ) = pred .getArity ( )
45
43
)
46
44
}
Original file line number Diff line number Diff line change @@ -202,9 +202,9 @@ module DataFlow {
202
202
varaccesValue ( e2 , v , scope )
203
203
)
204
204
or
205
- exists ( VarDecl v , Formula f , Select sel |
205
+ exists ( Formula f , Select sel |
206
206
getParentFormula * ( f ) = sel .getWhere ( ) and
207
- varaccesValue ( e1 , v , f ) and
207
+ varaccesValue ( e1 , _ , f ) and
208
208
sel .getExpr ( _) = e2
209
209
)
210
210
or
You can’t perform that action at this time.
0 commit comments