@@ -2,7 +2,6 @@ private import csharp
22private import DataFlowPublic
33private import DataFlowDispatch
44private import DataFlowImplCommon
5- private import ControlFlowReachability
65private import FlowSummaryImpl as FlowSummaryImpl
76private import semmle.code.csharp.dataflow.FlowSummary as FlowSummary
87private 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. */
281262module VariableCapture {
282263 private import codeql.dataflow.VariableCapture as Shared
0 commit comments