Skip to content

Commit d0cd4ac

Browse files
committed
Shared: remove unused getLhs() predicate
1 parent 36b31a8 commit d0cd4ac

3 files changed

Lines changed: 0 additions & 14 deletions

File tree

ruby/ql/lib/codeql/ruby/ast/internal/Variable.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ private module Input implements LocalNameBindingInputSig<Location> {
170170
class SiblingShadowingDecl extends AstNode {
171171
SiblingShadowingDecl() { none() }
172172

173-
AstNode getLhs() { none() }
174-
175173
AstNode getRhs() { none() }
176174

177175
AstNode getElse() { none() }

shared/namebinding/codeql/namebinding/LocalNameBinding.qll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ signature module LocalNameBindingInputSig<LocationSig Location> {
8282
* ```
8383
*/
8484
class SiblingShadowingDecl extends AstNode {
85-
/** Gets the left-hand side of this declaration. */
86-
AstNode getLhs();
87-
8885
/**
8986
* Gets the right-hand side of this declaration.
9087
*

unified/ql/lib/codeql/unified/internal/Variables.qll

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ private module LocalNameBindingInput implements LocalNameBindingInputSig<Locatio
9191
}
9292

9393
abstract class SiblingShadowingDecl extends AstNode {
94-
/** Gets the left-hand side of this declaration. */
95-
abstract AstNode getLhs();
96-
9794
/**
9895
* Gets the right-hand side of this declaration.
9996
*
@@ -113,25 +110,19 @@ private module LocalNameBindingInput implements LocalNameBindingInputSig<Locatio
113110

114111
private class LocalVariableDeclarationSiblingShadowingDecl extends SiblingShadowingDecl instanceof LocalVariableDeclaration
115112
{
116-
override AstNode getLhs() { result = LocalVariableDeclaration.super.getPattern() }
117-
118113
override AstNode getRhs() { result = LocalVariableDeclaration.super.getValue() }
119114

120115
override AstNode getElse() { none() }
121116
}
122117

123118
private class PatternGuardExprSiblingShadowingDecl extends SiblingShadowingDecl instanceof PatternGuardExpr
124119
{
125-
override AstNode getLhs() { result = PatternGuardExpr.super.getPattern() }
126-
127120
override AstNode getRhs() { result = PatternGuardExpr.super.getValue() }
128121

129122
override AstNode getElse() { none() }
130123
}
131124

132125
private class GuardIfStmtSiblingShadowingDecl extends SiblingShadowingDecl instanceof GuardIfStmt {
133-
override AstNode getLhs() { result = GuardIfStmt.super.getCondition() }
134-
135126
override AstNode getRhs() { none() }
136127

137128
override AstNode getElse() { result = GuardIfStmt.super.getElse() }

0 commit comments

Comments
 (0)