Commit b35623ca authored by neis's avatar neis Committed by Commit bot

[ast] Remove unused function Scope::ReportMessage.

R=adamk@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2081163002
Cr-Commit-Position: refs/heads/master@{#37280}
parent a2dad04f
......@@ -816,21 +816,6 @@ Handle<StringSet> Scope::CollectNonLocals(Handle<StringSet> non_locals) {
}
void Scope::ReportMessage(int start_position, int end_position,
MessageTemplate::Template message,
const AstRawString* arg) {
// Propagate the error to the topmost scope targeted by this scope analysis
// phase.
Scope* top = this;
while (!top->is_script_scope() && !top->outer_scope()->already_resolved()) {
top = top->outer_scope();
}
top->pending_error_handler_.ReportMessageAt(start_position, end_position,
message, arg, kReferenceError);
}
#ifdef DEBUG
static const char* Header(ScopeType scope_type, FunctionKind function_kind,
bool is_declaration_scope) {
......
......@@ -571,11 +571,6 @@ class Scope: public ZoneObject {
return &sloppy_block_function_map_;
}
// Error handling.
void ReportMessage(int start_position, int end_position,
MessageTemplate::Template message,
const AstRawString* arg);
// ---------------------------------------------------------------------------
// Debugging.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment