Skip to content

Commit 260db1a

Browse files
committed
Ruby: drop getAQualifiedName predicate from ConstantAccess
1 parent 3bbb166 commit 260db1a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

ruby/ql/lib/codeql/ruby/ast/Constant.qll

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,6 @@ class ConstantAccess extends Expr, TConstantAccess {
208208
*/
209209
predicate hasGlobalScope() { none() }
210210

211-
/**
212-
* Gets a fully qualified name for this constant.
213-
*/
214-
string getAQualifiedName() { none() }
215-
216211
override string toString() { result = this.getName() }
217212

218213
override AstNode getAChild(string pred) {
@@ -299,8 +294,6 @@ class ConstantReadAccess extends ConstantAccess {
299294
Expr getValue() { result = getConstantReadAccessValue(this) }
300295

301296
final override string getAPrimaryQlClass() { result = "ConstantReadAccess" }
302-
303-
override string getAQualifiedName() { TResolved(result) = resolveConstantReadAccess(this) }
304297
}
305298

306299
/**
@@ -361,7 +354,7 @@ class ConstantWriteAccess extends ConstantAccess {
361354
* constants up the namespace chain, the fully qualified name of a nested
362355
* constant can be ambiguous from just statically looking at the AST.
363356
*/
364-
override string getAQualifiedName() { result = resolveConstantWriteAccess(this) }
357+
string getAQualifiedName() { result = resolveConstantWriteAccess(this) }
365358

366359
/**
367360
* Gets a qualified name for this constant. Deprecated in favor of

0 commit comments

Comments
 (0)