Skip to content

Commit 9357762

Browse files
committed
Python: remove superflous code
This is handled by parameter-argument matching
1 parent 112e7c9 commit 9357762

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/DataFlowDispatch.qll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,10 +372,6 @@ abstract class DataFlowFunction extends DataFlowCallable, TFunction {
372372
result.getParameter() = func.getArg(index + this.positionalOffset())
373373
)
374374
or
375-
exists(int index1, int index2 | ppos.isPositionalLowerBound(index1) and index2 >= index1 |
376-
result.getParameter() = func.getArg(index2 + this.positionalOffset())
377-
)
378-
or
379375
exists(string name | ppos.isKeyword(name) | result.getParameter() = func.getArgByName(name))
380376
or
381377
// `*args`

0 commit comments

Comments
 (0)