Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: src/ast/scopes.cc

Issue 2081163002: [ast] Remove unused function Scope::ReportMessage. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/ast/scopes.h ('K') | « src/ast/scopes.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/scopes.cc
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc
index beffa53d74a971a1e39c02e8eb6dd5224b4c21f8..bc50f8f11b5f6051d775e3d0e1438ac556024db8 100644
--- a/src/ast/scopes.cc
+++ b/src/ast/scopes.cc
@@ -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) {
« src/ast/scopes.h ('K') | « src/ast/scopes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698