Skip to content

Commit db33c36

Browse files
authored
Merge pull request github#2910 from aschackmull/dataflow/cleanup
Java/C++: Minor dataflow cleanup.
2 parents 03b8823 + fba8772 commit db33c36

File tree

5 files changed

+1
-25
lines changed

5 files changed

+1
-25
lines changed

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowDispatch.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
private import cpp
22

3-
Function viableImpl(Call call) { result = viableCallable(call) }
4-
53
/**
64
* Gets a function that might be called by `call`.
75
*/

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowPrivate.qll

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,6 @@ OutNode getAnOutNode(DataFlowCall call, ReturnKind kind) {
132132
*/
133133
predicate jumpStep(Node n1, Node n2) { none() }
134134

135-
/**
136-
* Holds if `call` passes an implicit or explicit qualifier, i.e., a
137-
* `this` parameter.
138-
*/
139-
predicate callHasQualifier(Call call) {
140-
call.hasQualifier()
141-
or
142-
call.getTarget() instanceof Destructor
143-
}
144-
145135
private newtype TContent =
146136
TFieldContent(Field f) or
147137
TCollectionContent() or

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowDispatch.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ private import semmle.code.cpp.ir.IR
33
private import semmle.code.cpp.ir.dataflow.DataFlow
44
private import semmle.code.cpp.ir.dataflow.internal.DataFlowPrivate
55

6-
Function viableImpl(CallInstruction call) { result = viableCallable(call) }
7-
86
/**
97
* Gets a function that might be called by `call`.
108
*/

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowPrivate.qll

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,6 @@ OutNode getAnOutNode(DataFlowCall call, ReturnKind kind) {
6767
*/
6868
predicate jumpStep(Node n1, Node n2) { none() }
6969

70-
/**
71-
* Holds if `call` passes an implicit or explicit qualifier, i.e., a
72-
* `this` parameter.
73-
*/
74-
predicate callHasQualifier(Call call) {
75-
call.hasQualifier()
76-
or
77-
call.getTarget() instanceof Destructor
78-
}
79-
8070
private newtype TContent =
8171
TFieldContent(Field f) or
8272
TCollectionContent() or

java/ql/src/semmle/code/java/dataflow/internal/DataFlowPrivate.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ predicate jumpStep(Node node1, Node node2) {
120120
* Holds if `fa` is an access to an instance field that occurs as the
121121
* destination of an assignment of the value `src`.
122122
*/
123-
predicate instanceFieldAssign(Expr src, FieldAccess fa) {
123+
private predicate instanceFieldAssign(Expr src, FieldAccess fa) {
124124
exists(AssignExpr a |
125125
a.getSource() = src and
126126
a.getDest() = fa and

0 commit comments

Comments
 (0)