OSDN Git Service

Remove unnecessary calls to LinkedList::clear()
authorDmitriy Ivanov <dimitry@google.com>
Tue, 26 Aug 2014 22:56:31 +0000 (15:56 -0700)
committerDmitriy Ivanov <dimitry@google.com>
Wed, 1 Oct 2014 22:53:07 +0000 (15:53 -0700)
(cherry picked from commit 608217e1674d8fd8b334fe18c753b6c4638ed783)

Change-Id: I031359d79b2e77977ace197ef410e41539dc0ce6

linker/linker.cpp

index 6aba394..9a58103 100644 (file)
@@ -657,8 +657,6 @@ ElfW(Sym)* dlsym_handle_lookup(soinfo* si, soinfo** found, const char* name) {
 
     if (result != nullptr) {
       *found = current_soinfo;
-      visit_list.clear();
-      visited.clear();
       return result;
     }
     visited.push_back(current_soinfo);
@@ -668,8 +666,6 @@ ElfW(Sym)* dlsym_handle_lookup(soinfo* si, soinfo** found, const char* name) {
     });
   }
 
-  visit_list.clear();
-  visited.clear();
   return nullptr;
 }