diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-06 11:22:00 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-06 11:22:00 +0200 |
commit | e88f15157f90cb2115d30dd7fc61704637536cd5 (patch) | |
tree | 49d2fb0025290f9c91bf6704d2ca5a3da5f8c041 /js/src/frontend/Parser.cpp | |
parent | f38ef66b7b9f1d1c85c5d8a7a5bbaa5f6c3c9948 (diff) | |
download | UXP-e88f15157f90cb2115d30dd7fc61704637536cd5.tar UXP-e88f15157f90cb2115d30dd7fc61704637536cd5.tar.gz UXP-e88f15157f90cb2115d30dd7fc61704637536cd5.tar.lz UXP-e88f15157f90cb2115d30dd7fc61704637536cd5.tar.xz UXP-e88f15157f90cb2115d30dd7fc61704637536cd5.zip |
Remove Parser::reportHelper since it's no longer used.
Diffstat (limited to 'js/src/frontend/Parser.cpp')
-rw-r--r-- | js/src/frontend/Parser.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp index 30a627a65..189f27bc4 100644 --- a/js/src/frontend/Parser.cpp +++ b/js/src/frontend/Parser.cpp @@ -571,30 +571,6 @@ FunctionBox::initWithEnclosingScope(Scope* enclosingScope) } template <typename ParseHandler> -bool -Parser<ParseHandler>::reportHelper(ParseReportKind kind, bool strict, uint32_t offset, - unsigned errorNumber, va_list args) -{ - bool result = false; - switch (kind) { - case ParseError: - result = tokenStream.reportCompileErrorNumberVA(offset, JSREPORT_ERROR, errorNumber, args); - break; - case ParseWarning: - result = - tokenStream.reportCompileErrorNumberVA(offset, JSREPORT_WARNING, errorNumber, args); - break; - case ParseExtraWarning: - result = tokenStream.reportStrictWarningErrorNumberVA(offset, errorNumber, args); - break; - case ParseStrictError: - result = tokenStream.reportStrictModeErrorNumberVA(offset, strict, errorNumber, args); - break; - } - return result; -} - -template <typename ParseHandler> void Parser<ParseHandler>::error(unsigned errorNumber, ...) { |