Skip to content

Commit e7edf15

Browse files
committed
C#: Clean up.
1 parent 4c77e0f commit e7edf15

File tree

4 files changed

+0
-270
lines changed

4 files changed

+0
-270
lines changed

config/identical-files.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,6 @@
172172
"cpp/ql/lib/semmle/code/cpp/ir/implementation/raw/internal/reachability/PrintDominance.qll",
173173
"cpp/ql/lib/semmle/code/cpp/ir/implementation/unaliased_ssa/internal/reachability/PrintDominance.qll"
174174
],
175-
"C# ControlFlowReachability": [
176-
"csharp/ql/lib/semmle/code/csharp/dataflow/internal/ControlFlowReachability.qll",
177-
"csharp/ql/lib/semmle/code/csharp/dataflow/internal/rangeanalysis/ControlFlowReachability.qll"
178-
],
179175
"C++ ExternalAPIs": [
180176
"cpp/ql/src/Security/CWE/CWE-020/ExternalAPIs.qll",
181177
"cpp/ql/src/Security/CWE/CWE-020/ir/ExternalAPIs.qll"

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)