Skip to content

Commit 67d6b40

Browse files
committed
remove leftover code
1 parent 89c8d99 commit 67d6b40

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lldb/source/Core/ModuleList.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,15 +1288,6 @@ bool ModuleList::RemoveSharedModule(lldb::ModuleSP &module_sp) {
12881288
}
12891289

12901290
bool ModuleList::RemoveSharedModuleIfOrphaned(const ModuleWP module_wp) {
1291-
// Get the module pointer if the shared pointer is still valid,
1292-
// but be careful to call RemoveIfOrphaned after the shared pointer
1293-
// is out of scope, otherwise the use count would be incremented by one and
1294-
// RemoveIfOrphaned would never identify the module as an orphan.
1295-
Module *module_ptr = nullptr;
1296-
if (ModuleSP module_sp = module_wp.lock())
1297-
module_ptr = module_sp.get();
1298-
else
1299-
return false;
13001291
return GetSharedModuleList().RemoveIfOrphaned(module_wp);
13011292
}
13021293

0 commit comments

Comments
 (0)