| Index: src/ast/scopes.cc
|
| diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc
|
| index b5516fdd913d77c6a1f82e6bb0e02d6cc08af681..da23a6a4700ef6a0163efeb48ef03ffb951c7978 100644
|
| --- a/src/ast/scopes.cc
|
| +++ b/src/ast/scopes.cc
|
| @@ -1097,26 +1097,6 @@ bool Scope::RemoveUnresolved(VariableProxy* var) {
|
| return false;
|
| }
|
|
|
| -bool Scope::RemoveUnresolved(const AstRawString* name) {
|
| - if (unresolved_ != nullptr && unresolved_->raw_name() == name) {
|
| - VariableProxy* removed = unresolved_;
|
| - unresolved_ = unresolved_->next_unresolved();
|
| - removed->set_next_unresolved(nullptr);
|
| - return true;
|
| - }
|
| - VariableProxy* current = unresolved_;
|
| - while (current != nullptr) {
|
| - VariableProxy* next = current->next_unresolved();
|
| - if (next != nullptr && next->raw_name() == name) {
|
| - current->set_next_unresolved(next->next_unresolved());
|
| - next->set_next_unresolved(nullptr);
|
| - return true;
|
| - }
|
| - current = next;
|
| - }
|
| - return false;
|
| -}
|
| -
|
| Variable* Scope::NewTemporary(const AstRawString* name) {
|
| DeclarationScope* scope = GetClosureScope();
|
| Variable* var = new (zone())
|
|
|