Skip to content

Commit 7691807

Browse files
committed
delete the getLastParameter predicate from ApiGraphs
1 parent 934e06c commit 7691807

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

python/ql/lib/semmle/python/ApiGraphs.qll

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,6 @@ module API {
140140
*/
141141
int getNumParameter() { result = max(int s | exists(this.getParameter(s))) + 1 }
142142

143-
/**
144-
* Gets a node representing the last parameter of the function represented by this node.
145-
*
146-
* This predicate may have multiple results when there are multiple invocations of this API component.
147-
* Consider using `getACall()` if there is a need to distingiush between individual calls.
148-
*/
149-
Node getLastParameter() { result = this.getParameter(this.getNumParameter() - 1) }
150-
151143
/**
152144
* Gets a node representing a subclass of the class represented by this node.
153145
*/
@@ -322,9 +314,6 @@ module API {
322314
/** Gets the API node for a parameter of this invocation. */
323315
Node getAParameter() { result = this.getParameter(_) }
324316

325-
/** Gets the API node for the last parameter of this invocation. */
326-
Node getLastParameter() { result = this.getParameter(max(int i | exists(this.getArg(i)))) }
327-
328317
/** Gets the API node for the keyword parameter `name` of this invocation. */
329318
Node getKeywordParameter(string name) {
330319
result = callee.getKeywordParameter(name) and

0 commit comments

Comments
 (0)