Remove unused variables.
authorZachary Turner <zturner@google.com>
Wed, 31 Aug 2016 20:03:14 +0000 (20:03 +0000)
committerZachary Turner <zturner@google.com>
Wed, 31 Aug 2016 20:03:14 +0000 (20:03 +0000)
Patch by Taras Tsugrii

llvm-svn: 280283

lldb/source/DataFormatters/TypeCategoryMap.cpp
lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
lldb/source/Target/Process.cpp
lldb/source/Target/ThreadPlanStepOut.cpp

index 984c7f2..fc28783 100644 (file)
@@ -394,7 +394,6 @@ TypeCategoryMap::ForEach(ForEachCallback callback)
             {
                 if (pos->second->IsEnabled())
                     continue;
-                KeyType type = pos->first;
                 if (!callback(pos->second))
                     break;
             }
index f8bce2b..6888532 100644 (file)
@@ -1751,7 +1751,6 @@ AppleObjCRuntimeV2::UpdateISAToDescriptorMapSharedCache()
     
 
     bool success = false;
-    bool any_found = false;
 
     diagnostics.Clear();
 
@@ -1812,7 +1811,7 @@ AppleObjCRuntimeV2::UpdateISAToDescriptorMapSharedCache()
                                                     process->GetByteOrder(),
                                                     addr_size);
 
-                    any_found = (ParseClassInfoArray (class_infos_data, num_class_infos) > 0);
+                    ParseClassInfoArray (class_infos_data, num_class_infos);
                 }
             }
             else
index 84f7f57..f5f8660 100644 (file)
@@ -6602,7 +6602,6 @@ Process::GetMemoryRegions (std::vector<lldb::MemoryRegionInfoSP>& region_list)
 
     Error error;
 
-    lldb::addr_t range_base = 0;
     lldb::addr_t range_end = 0;
 
     region_list.clear();
@@ -6617,7 +6616,6 @@ Process::GetMemoryRegions (std::vector<lldb::MemoryRegionInfoSP>& region_list)
             break;
         }
 
-        range_base = region_info->GetRange().GetRangeBase();
         range_end = region_info->GetRange().GetRangeEnd();
         if( region_info->GetMapped() == MemoryRegionInfo::eYes )
         {
index eac4a36..55f8818 100644 (file)
@@ -71,8 +71,6 @@ ThreadPlanStepOut::ThreadPlanStepOut
     
     m_step_out_to_id = return_frame_sp->GetStackID();
     m_immediate_step_from_id = immediate_return_from_sp->GetStackID();
-    
-    StackID frame_zero_id = m_thread.GetStackFrameAtIndex(0)->GetStackID();
 
     // If the frame directly below the one we are returning to is inlined, we have to be
     // a little more careful.  It is non-trivial to determine the real "return code address" for