Skip to content

Commit d69d289

Browse files
committed
Swift: remove getArgumentByParamName (for now).
1 parent 85e99fe commit d69d289

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

swift/ql/lib/codeql/swift/elements/expr/ApplyExpr.qll

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@ class ApplyExpr extends Generated::ApplyExpr {
1919
/** Gets the method qualifier, if this is applying a method */
2020
Expr getQualifier() { none() }
2121

22-
/**
23-
* Gets the argument that has corresponding parameter name `paramName` (if
24-
* any). If this call does not have a static target, there will be no result.
25-
*/
26-
final Argument getArgumentByParamName(string paramName) {
27-
exists(int arg |
28-
this.getStaticTarget().getParam(pragma[only_bind_into](arg)).getName() = paramName and
29-
this.getArgument(pragma[only_bind_into](arg)) = result
30-
)
31-
}
32-
3322
override string toString() {
3423
result = "call to " + this.getStaticTarget().toString()
3524
or

0 commit comments

Comments
 (0)