From 608217e1674d8fd8b334fe18c753b6c4638ed783 Mon Sep 17 00:00:00 2001 From: Dmitriy Ivanov Date: Tue, 26 Aug 2014 15:56:31 -0700 Subject: [PATCH] Remove unnecessary calls to LinkedList::clear() Change-Id: I981d2700cb17322c634b751715543fd33ee49b7c --- linker/linker.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/linker/linker.cpp b/linker/linker.cpp index aaa653fdb..5f5823bad 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp @@ -639,8 +639,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); @@ -650,8 +648,6 @@ ElfW(Sym)* dlsym_handle_lookup(soinfo* si, soinfo** found, const char* name) { }); } - visit_list.clear(); - visited.clear(); return nullptr; }