Skip to content

Commit d05a8b8

Browse files
committed
Python: Remove getAnArg in DataFlow::CallCfgNode
Until we've had further discussion on what is the right approach to naming (internal discussion in github/codeql-python-team#95)
1 parent 5bb4a1a commit d05a8b8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

python/ql/src/semmle/python/dataflow/new/internal/DataFlowPublic.qll

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,6 @@ class CallCfgNode extends CfgNode {
193193

194194
/** Gets the data-flow node corresponding to the named argument of the call corresponding to this data-flow node */
195195
Node getArgByName(string name) { result.asCfgNode() = node.getArgByName(name) }
196-
197-
/** Gets the data-flow node corresponding to an argument of the call corresponding to this data-flow node */
198-
Node getAnArg() {
199-
exists(int n | result = this.getArg(n))
200-
or
201-
exists(string name | result = this.getArgByName(name))
202-
}
203196
}
204197

205198
/**

0 commit comments

Comments
 (0)