File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -1288,15 +1288,6 @@ bool ModuleList::RemoveSharedModule(lldb::ModuleSP &module_sp) {
12881288}
12891289
12901290bool 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
You can’t perform that action at this time.
0 commit comments