summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/Parser.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-04-06 11:18:36 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-04-06 11:18:36 +0200
commit4f62fda966af85252f8345e51d694cd6d3a063c8 (patch)
treefd62fff5e83e4508fb4079fa748f7356dde98441 /js/src/frontend/Parser.h
parent7ea8efe0cb3199566b86a2b7ad4cb99df8620324 (diff)
downloadUXP-4f62fda966af85252f8345e51d694cd6d3a063c8.tar
UXP-4f62fda966af85252f8345e51d694cd6d3a063c8.tar.gz
UXP-4f62fda966af85252f8345e51d694cd6d3a063c8.tar.lz
UXP-4f62fda966af85252f8345e51d694cd6d3a063c8.tar.xz
UXP-4f62fda966af85252f8345e51d694cd6d3a063c8.zip
Remove Parser::reportWithNode and its remaining callers.
All of the callsites have a full ParseNode* at hand, of which the offset can be directly accessed.
Diffstat (limited to 'js/src/frontend/Parser.h')
-rw-r--r--js/src/frontend/Parser.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/js/src/frontend/Parser.h b/js/src/frontend/Parser.h
index a7e48c1a4..196c71fa5 100644
--- a/js/src/frontend/Parser.h
+++ b/js/src/frontend/Parser.h
@@ -907,7 +907,6 @@ class Parser final : private JS::AutoGCRooter, public StrictModeGetter
bool reportHelper(ParseReportKind kind, bool strict, uint32_t offset,
unsigned errorNumber, va_list args);
public:
- bool reportWithNode(ParseReportKind kind, bool strict, Node pn, unsigned errorNumber, ...);
bool reportNoOffset(ParseReportKind kind, bool strict, unsigned errorNumber, ...);
/* Report the given error at the current offset. */