Skip to content

Commit 012e1b4

Browse files
committed
Dataflow: Remove duplicate definitions
1 parent bc8ca1a commit 012e1b4

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

shared/dataflow/codeql/dataflow/internal/DataFlowImpl.qll

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2588,21 +2588,21 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
25882588

25892589
CcCall ccSomeCall() { result instanceof CallContextSomeCall }
25902590

2591+
DataFlowCallable viableImplCallContextReduced(DataFlowCall call, CcCall ctx) {
2592+
result = Input::prunedViableImplInCallContext(call, ctx)
2593+
}
2594+
2595+
bindingset[call, ctx]
2596+
predicate viableImplNotCallContextReduced(DataFlowCall call, Cc ctx) {
2597+
Input::noPrunedViableImplInCallContext(call, ctx)
2598+
}
2599+
25912600
module NoLocalCallContext {
25922601
class LocalCc = Unit;
25932602

25942603
bindingset[node, cc]
25952604
LocalCc getLocalCc(NodeEx node, Cc cc) { any() }
25962605

2597-
DataFlowCallable viableImplCallContextReduced(DataFlowCall call, CcCall ctx) {
2598-
result = Input::prunedViableImplInCallContext(call, ctx)
2599-
}
2600-
2601-
bindingset[call, ctx]
2602-
predicate viableImplNotCallContextReduced(DataFlowCall call, Cc ctx) {
2603-
Input::noPrunedViableImplInCallContext(call, ctx)
2604-
}
2605-
26062606
bindingset[call, c]
26072607
CcCall getCallContextCall(DataFlowCall call, DataFlowCallable c) {
26082608
if Input::recordDataFlowCallSiteDispatch(call, c)
@@ -2621,15 +2621,6 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
26212621
node.getEnclosingCallable())
26222622
}
26232623

2624-
DataFlowCallable viableImplCallContextReduced(DataFlowCall call, CcCall ctx) {
2625-
result = Input::prunedViableImplInCallContext(call, ctx)
2626-
}
2627-
2628-
bindingset[call, ctx]
2629-
predicate viableImplNotCallContextReduced(DataFlowCall call, Cc ctx) {
2630-
Input::noPrunedViableImplInCallContext(call, ctx)
2631-
}
2632-
26332624
bindingset[call, c]
26342625
CcCall getCallContextCall(DataFlowCall call, DataFlowCallable c) {
26352626
if

0 commit comments

Comments
 (0)