summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/Parser.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-04-06 11:22:00 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-04-06 11:22:00 +0200
commite88f15157f90cb2115d30dd7fc61704637536cd5 (patch)
tree49d2fb0025290f9c91bf6704d2ca5a3da5f8c041 /js/src/frontend/Parser.cpp
parentf38ef66b7b9f1d1c85c5d8a7a5bbaa5f6c3c9948 (diff)
downloadUXP-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.cpp24
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, ...)
{