JS: removed unused rhino error reporter method
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
-10
@@ -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<JetExpression> getDiagnostic(
|
||||
@NotNull DiagnosticFactory2<JetExpression, String, List<TextRange>> diagnosticFactory,
|
||||
String message,
|
||||
|
||||
Reference in New Issue
Block a user