Remove unused isNot() method

master
Graham 5 years ago
parent f69999679e
commit e2b2a77fd8
  1. 4
      deob-ast/src/main/java/dev/openrs2/deob/ast/util/ExprUtils.java

@ -16,10 +16,6 @@ public final class ExprUtils {
return new LongLiteralExpr(Long.toString(value).concat("L"));
}
public static boolean isNot(Expression expr) {
return expr.isUnaryExpr() && expr.asUnaryExpr().getOperator() == UnaryExpr.Operator.LOGICAL_COMPLEMENT;
}
public static Expression negate(Expression expr) {
if (expr.isUnaryExpr() && expr.asUnaryExpr().getOperator() == UnaryExpr.Operator.MINUS) {
return expr.asUnaryExpr().getExpression().clone();

Loading…
Cancel
Save