File tree Expand file tree Collapse file tree
python/ql/lib/semmle/python Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments