Remove unused predicate

This commit is contained in:
Chris Smowton
2023-11-24 15:08:15 +00:00
parent 1cb5efa1ec
commit beb827b1d0

View File

@@ -502,17 +502,7 @@ class SwitchCase extends Stmt, @case {
* This predicate is mutually exclusive with `getRuleExpression`.
*/
Stmt getRuleStatement() {
result = this.getRuleStatementOrExpressionStatement() and not result instanceof ExprStmt
}
/**
* Gets the statement, including an expression statement, on the RHS of the arrow, if any.
*
* This means this could be an explicit `case e1 -> { s1; ... }` or an implicit
* `case e1 -> stmt;` rule.
*/
Stmt getRuleStatementOrExpressionStatement() {
result.getParent() = this and result.getIndex() = -1
result.getParent() = this and result.getIndex() = -1 and not result instanceof ExprStmt
}
}