Index: src/ast/scopes.cc |
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc |
index 7c87ce39e95a44a8f8e8e1932b1a3f67b16e1d8f..0032d4aaba9316fb82f9bc8a7720d4c602e416a7 100644 |
--- a/src/ast/scopes.cc |
+++ b/src/ast/scopes.cc |
@@ -818,23 +818,6 @@ Handle<ScopeInfo> Scope::GetScopeInfo(Isolate* isolate) { |
} |
-void Scope::GetNestedScopeChain(Isolate* isolate, |
- List<Handle<ScopeInfo> >* chain, int position) { |
- if (!is_eval_scope()) chain->Add(Handle<ScopeInfo>(GetScopeInfo(isolate))); |
- |
- for (int i = 0; i < inner_scopes_.length(); i++) { |
- Scope* scope = inner_scopes_[i]; |
- int beg_pos = scope->start_position(); |
- int end_pos = scope->end_position(); |
- DCHECK(beg_pos >= 0 && end_pos >= 0); |
- if (beg_pos <= position && position < end_pos) { |
- scope->GetNestedScopeChain(isolate, chain, position); |
- return; |
- } |
- } |
-} |
- |
- |
void Scope::CollectNonLocals(HashMap* non_locals) { |
// Collect non-local variables referenced in the scope. |
// TODO(yangguo): store non-local variables explicitly if we can no longer |