Skip to content

Commit 77d5367

Browse files
committed
Java: Remove deprecated ParExpr.
1 parent 890adf9 commit 77d5367

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

java/ql/src/semmle/code/java/Expr.qll

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,6 @@ class Expr extends ExprParent, @expr {
4646
*/
4747
int getKind() { exprs(this, result, _, _, _) }
4848

49-
/**
50-
* DEPRECATED: This is no longer necessary. See `Expr.isParenthesized()`.
51-
*
52-
* Gets this expression with any surrounding parentheses removed.
53-
*/
54-
deprecated Expr getProperExpr() {
55-
result = this.(ParExpr).getExpr().getProperExpr()
56-
or
57-
result = this and not this instanceof ParExpr
58-
}
59-
6049
/** Gets the statement containing this expression, if any. */
6150
Stmt getEnclosingStmt() { statementEnclosingExpr(this, result) }
6251

@@ -1318,19 +1307,6 @@ class SwitchExpr extends Expr, StmtParent, @switchexpr {
13181307
override string getAPrimaryQlClass() { result = "SwitchExpr" }
13191308
}
13201309

1321-
/**
1322-
* DEPRECATED: Use `Expr.isParenthesized()` instead.
1323-
*
1324-
* A parenthesised expression.
1325-
*/
1326-
deprecated class ParExpr extends Expr, @parexpr {
1327-
/** Gets the expression inside the parentheses. */
1328-
deprecated Expr getExpr() { result.getParent() = this }
1329-
1330-
/** Gets a printable representation of this expression. */
1331-
override string toString() { result = "(...)" }
1332-
}
1333-
13341310
/** An `instanceof` expression. */
13351311
class InstanceOfExpr extends Expr, @instanceofexpr {
13361312
/** Gets the expression on the left-hand side of the `instanceof` operator. */

0 commit comments

Comments
 (0)