Remove dead code.
This commit is contained in:
@@ -88,12 +88,6 @@ public final class JsAstUtils {
|
||||
return convertToStatement(new JsBinaryOperation(JsBinaryOperator.ASG, nameRef, expr));
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static JsExpression extractExpressionFromStatement(@NotNull JsStatement statement) {
|
||||
assert statement instanceof JsExprStmt : "Cannot extract expression from statement: " + statement;
|
||||
return (((JsExprStmt) statement).getExpression());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static JsBinaryOperation and(@NotNull JsExpression op1, @NotNull JsExpression op2) {
|
||||
return new JsBinaryOperation(JsBinaryOperator.AND, op1, op2);
|
||||
@@ -140,11 +134,6 @@ public final class JsAstUtils {
|
||||
return new JsBinaryOperation(JsBinaryOperator.NEQ, arg1, arg2);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static JsExpression equalsTrue(@NotNull JsExpression expression, @NotNull JsProgram program) {
|
||||
return equality(expression, program.getTrueLiteral());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static JsExpression assignment(@NotNull JsExpression left, @NotNull JsExpression right) {
|
||||
return new JsBinaryOperation(JsBinaryOperator.ASG, left, right);
|
||||
@@ -288,10 +277,6 @@ public final class JsAstUtils {
|
||||
arguments.addAll(newArgs);
|
||||
}
|
||||
|
||||
public static void setArguments(@NotNull JsInvocation invocation, JsExpression... arguments) {
|
||||
setArguments(invocation, Arrays.asList(arguments));
|
||||
}
|
||||
|
||||
public static void setArguments(@NotNull JsNew invocation, @NotNull List<JsExpression> newArgs) {
|
||||
List<JsExpression> arguments = invocation.getArguments();
|
||||
assert arguments.isEmpty() : "Arguments already set.";
|
||||
|
||||
Reference in New Issue
Block a user