From baccfa914fb9779dad9d791e880c2cbafe0af296 Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Thu, 18 Dec 2014 21:18:24 +0300 Subject: [PATCH] JS: removed unused rhino error reporter method --- .../google/gwt/dev/js/rhino/ErrorReporter.java | 18 ------------------ .../reference/CallExpressionTranslator.java | 10 ---------- 2 files changed, 28 deletions(-) diff --git a/js/js.parser/src/com/google/gwt/dev/js/rhino/ErrorReporter.java b/js/js.parser/src/com/google/gwt/dev/js/rhino/ErrorReporter.java index 75db11a6f69..ba13d40c7d0 100644 --- a/js/js.parser/src/com/google/gwt/dev/js/rhino/ErrorReporter.java +++ b/js/js.parser/src/com/google/gwt/dev/js/rhino/ErrorReporter.java @@ -81,22 +81,4 @@ public interface ErrorReporter { */ void error(String message, String sourceName, int line, String lineSource, int lineOffset); - - /** - * Creates an EvaluatorException that may be thrown. - * - * runtimeErrors, unlike errors, will always terminate the - * current script. - * - * @param message a String describing the error - * @param sourceName a String describing the JavaScript source - * where the error occured; typically a filename or URL - * @param line the line number associated with the error - * @param lineSource the text of the line (may be null) - * @param lineOffset the offset into lineSource where problem was detected - * @return an EvaluatorException that will be thrown. - */ - EvaluatorException runtimeError(String message, String sourceName, - int line, String lineSource, - int lineOffset); } diff --git a/js/js.translator/src/org/jetbrains/kotlin/js/translate/reference/CallExpressionTranslator.java b/js/js.translator/src/org/jetbrains/kotlin/js/translate/reference/CallExpressionTranslator.java index 47191dd0b3f..8ee67a82a0e 100644 --- a/js/js.translator/src/org/jetbrains/kotlin/js/translate/reference/CallExpressionTranslator.java +++ b/js/js.translator/src/org/jetbrains/kotlin/js/translate/reference/CallExpressionTranslator.java @@ -213,16 +213,6 @@ public final class CallExpressionTranslator extends AbstractCallExpressionTransl trace.report(diagnostic); } - /** - * TODO: seems not called anywhere, so remove - */ - @Override - public EvaluatorException runtimeError( - String message, String sourceName, int line, String lineSource, int lineOffset - ) { - throw new RuntimeException(message); - } - private ParametrizedDiagnostic getDiagnostic( @NotNull DiagnosticFactory2> diagnosticFactory, String message,