Skip to content

Commit 12a6dcc

Browse files
committed
Rust: Remove some predicates
1 parent 09461e9 commit 12a6dcc

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

rust/ql/lib/codeql/rust/elements/internal/CallExprImpl.qll

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ module Impl {
4444
override string toStringImpl() { result = this.getFunction().toAbbreviatedString() + "(...)" }
4545

4646
override Expr getSyntacticPositionalArgument(int i) { result = getSyntacticArg(this, i) }
47-
48-
// todo: remove once internal query has been updated
49-
Expr getArg(int i) { result = getSyntacticArg(this, i) }
50-
51-
// todo: remove once internal query has been updated
52-
int getNumberOfArgs() { result = this.getNumberOfSyntacticArguments() }
5347
}
5448

5549
/**

rust/ql/lib/codeql/rust/elements/internal/CallImpl.qll

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ module Impl {
3939
/** Gets an argument of this call. */
4040
Expr getAnArgument() { result = this.getArgument(_) }
4141

42-
// todo: remove once internal query has been updated
43-
Expr getReceiver() { none() }
44-
4542
/**
4643
* Gets the `i`th positional argument of this call.
4744
*
@@ -71,9 +68,6 @@ module Impl {
7168
/** Gets the name of the function called, if any. */
7269
string getTargetName() { result = this.getStaticTarget().getName().getText() }
7370

74-
// todo: remove once internal query has been updated
75-
string getMethodName() { result = this.getTargetName() }
76-
7771
/** Gets a runtime target of this call, if any. */
7872
pragma[nomagic]
7973
Function getARuntimeTarget() {
@@ -110,6 +104,6 @@ module Impl {
110104
* x[y]; // `x` is receiver
111105
* ```
112106
*/
113-
override Expr getReceiver() { none() }
107+
Expr getReceiver() { none() }
114108
}
115109
}

0 commit comments

Comments
 (0)