| Index: src/scopes.cc
|
| diff --git a/src/scopes.cc b/src/scopes.cc
|
| index 15634d09514d47daa128dc24f9d3ecf05e15587d..b2958db60fbc20d5d7689bfcb4aca8adf50ca2c6 100644
|
| --- a/src/scopes.cc
|
| +++ b/src/scopes.cc
|
| @@ -331,35 +331,6 @@ void Scope::Initialize(bool inside_with) {
|
| }
|
|
|
|
|
| -Scope* Scope::FinalizeBlockScope() {
|
| - ASSERT(is_block_scope());
|
| - ASSERT(temps_.is_empty());
|
| - ASSERT(params_.is_empty());
|
| -
|
| - if (num_var_or_const() > 0) return this;
|
| -
|
| - // Remove this scope from outer scope.
|
| - for (int i = 0; i < outer_scope_->inner_scopes_.length(); i++) {
|
| - if (outer_scope_->inner_scopes_[i] == this) {
|
| - outer_scope_->inner_scopes_.Remove(i);
|
| - break;
|
| - }
|
| - }
|
| -
|
| - // Reparent inner scopes.
|
| - for (int i = 0; i < inner_scopes_.length(); i++) {
|
| - outer_scope()->AddInnerScope(inner_scopes_[i]);
|
| - }
|
| -
|
| - // Move unresolved variables
|
| - for (int i = 0; i < unresolved_.length(); i++) {
|
| - outer_scope()->unresolved_.Add(unresolved_[i]);
|
| - }
|
| -
|
| - return NULL;
|
| -}
|
| -
|
| -
|
| Variable* Scope::LocalLookup(Handle<String> name) {
|
| Variable* result = variables_.Lookup(name);
|
| if (result != NULL || scope_info_.is_null()) {
|
|
|