summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--js/src/frontend/Parser.cpp24
-rw-r--r--js/src/frontend/Parser.h3
2 files changed, 0 insertions, 27 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, ...)
{
diff --git a/js/src/frontend/Parser.h b/js/src/frontend/Parser.h
index 196c71fa5..156a1c1b0 100644
--- a/js/src/frontend/Parser.h
+++ b/js/src/frontend/Parser.h
@@ -903,9 +903,6 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter
void prepareNodeForMutation(Node node) { handler.prepareNodeForMutation(node); }
void freeTree(Node node) { handler.freeTree(node); }
- private:
- bool reportHelper(ParseReportKind kind, bool strict, uint32_t offset,
- unsigned errorNumber, va_list args);
public:
bool reportNoOffset(ParseReportKind kind, bool strict, unsigned errorNumber, ...);