[Lldb-commits] [lldb] ad20a9e - [lldb] Remove StructuredData::Array::GetItemAtIndexAsArray (#71994)

via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 13 10:12:40 PST 2023


Author: Alex Langford
Date: 2023-11-13T10:12:36-08:00
New Revision: ad20a9e1a15d1694f7ab3d878bcfaab3d52c5abf

URL: https://github.com/llvm/llvm-project/commit/ad20a9e1a15d1694f7ab3d878bcfaab3d52c5abf
DIFF: https://github.com/llvm/llvm-project/commit/ad20a9e1a15d1694f7ab3d878bcfaab3d52c5abf.diff

LOG: [lldb] Remove StructuredData::Array::GetItemAtIndexAsArray (#71994)

This method is completely unused.

Added: 
    

Modified: 
    lldb/include/lldb/Utility/StructuredData.h

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/Utility/StructuredData.h b/lldb/include/lldb/Utility/StructuredData.h
index 8d0ae372f43c6bf..e7ee12868512f4a 100644
--- a/lldb/include/lldb/Utility/StructuredData.h
+++ b/lldb/include/lldb/Utility/StructuredData.h
@@ -276,16 +276,6 @@ class StructuredData {
       return {};
     }
 
-    bool GetItemAtIndexAsArray(size_t idx, Array *&result) const {
-      result = nullptr;
-      ObjectSP value_sp = GetItemAtIndex(idx);
-      if (value_sp.get()) {
-        result = value_sp->GetAsArray();
-        return (result != nullptr);
-      }
-      return false;
-    }
-
     void Push(const ObjectSP &item) { m_items.push_back(item); }
 
     void AddItem(const ObjectSP &item) { m_items.push_back(item); }


        


More information about the lldb-commits mailing list