Skip to content

Commit 59e0041

Browse files
committed
C#: Clean up.
1 parent b8d49ab commit 59e0041

File tree

3 files changed

+0
-266
lines changed

3 files changed

+0
-266
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/ControlFlowReachability.qll

Lines changed: 0 additions & 246 deletions
This file was deleted.

csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ private import csharp
22
private import DataFlowPublic
33
private import DataFlowDispatch
44
private import DataFlowImplCommon
5-
private import ControlFlowReachability
65
private import FlowSummaryImpl as FlowSummaryImpl
76
private import semmle.code.csharp.dataflow.FlowSummary as FlowSummary
87
private import semmle.code.csharp.dataflow.internal.ExternalFlow
@@ -259,24 +258,6 @@ private module ThisFlow {
259258
}
260259
}
261260

262-
/**
263-
* Holds if there is a control-flow path from `n1` to `n2`. `n2` is either an
264-
* expression node or an SSA definition node.
265-
*/
266-
pragma[nomagic]
267-
predicate hasNodePath(ControlFlowReachabilityConfiguration conf, ExprNode n1, Node n2) {
268-
exists(ControlFlow::Node cfn1, ControlFlow::Node cfn2 | conf.hasExprPath(_, cfn1, _, cfn2) |
269-
cfn1 = n1.getControlFlowNode() and
270-
cfn2 = n2.(ExprNode).getControlFlowNode()
271-
)
272-
or
273-
exists(ControlFlow::Node cfn, AssignableDefinition def, ControlFlow::Node cfnDef |
274-
conf.hasDefPath(_, cfn, def, cfnDef) and
275-
cfn = n1.getControlFlowNode() and
276-
n2 = TAssignableDefinitionNode(def, cfnDef)
277-
)
278-
}
279-
280261
/** Provides logic related to captured variables. */
281262
module VariableCapture {
282263
private import codeql.dataflow.VariableCapture as Shared

csharp/ql/lib/semmle/code/csharp/dataflow/internal/TaintTrackingPrivate.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ private import FlowSummaryImpl as FlowSummaryImpl
44
private import semmle.code.csharp.Caching
55
private import semmle.code.csharp.dataflow.internal.DataFlowDispatch
66
private import semmle.code.csharp.dataflow.internal.DataFlowPrivate
7-
private import semmle.code.csharp.dataflow.internal.ControlFlowReachability
87
private import semmle.code.csharp.dispatch.Dispatch
98
private import semmle.code.csharp.commons.ComparisonTest
109
// import `TaintedMember` definitions from other files to avoid potential reevaluation

0 commit comments

Comments
 (0)