Author: Alex Langford Date: 2023-08-16T14:23:58-07:00 New Revision: 2f382bfb14e38429e69885406ae8cedc9bb3028e
URL: https://github.com/llvm/llvm-project/commit/2f382bfb14e38429e69885406ae8cedc9bb3028e DIFF: https://github.com/llvm/llvm-project/commit/2f382bfb14e38429e69885406ae8cedc9bb3028e.diff LOG: [lldb][NFCI] Remove unused method overload of ValueObject::GetChildAtNamePath Differential Revision: https://reviews.llvm.org/D158024 Added: Modified: lldb/include/lldb/Core/ValueObject.h lldb/source/Core/ValueObject.cpp Removed: ################################################################################ diff --git a/lldb/include/lldb/Core/ValueObject.h b/lldb/include/lldb/Core/ValueObject.h index 2d8036ab078718..3af94f0a86e2fc 100644 --- a/lldb/include/lldb/Core/ValueObject.h +++ b/lldb/include/lldb/Core/ValueObject.h @@ -479,10 +479,6 @@ class ValueObject { // this will always create the children if necessary lldb::ValueObjectSP GetChildAtNamePath(llvm::ArrayRef<llvm::StringRef> names); - lldb::ValueObjectSP - GetChildAtNamePath(llvm::ArrayRef<std::pair<ConstString, bool>> names, - ConstString *name_of_error = nullptr); - virtual lldb::ValueObjectSP GetChildMemberWithName(llvm::StringRef name, bool can_create = true); diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index d60a1d6f7a1055..37d32e807fdbc2 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -440,23 +440,6 @@ ValueObject::GetChildAtNamePath(llvm::ArrayRef<llvm::StringRef> names) { return root; } -lldb::ValueObjectSP ValueObject::GetChildAtNamePath( - llvm::ArrayRef<std::pair<ConstString, bool>> names, - ConstString *name_of_error) { - if (names.size() == 0) - return GetSP(); - ValueObjectSP root(GetSP()); - for (std::pair<ConstString, bool> name : names) { - root = root->GetChildMemberWithName(name.first, name.second); - if (!root) { - if (name_of_error) - *name_of_error = name.first; - return root; - } - } - return root; -} - size_t ValueObject::GetIndexOfChildWithName(llvm::StringRef name) { bool omit_empty_base_classes = true; return GetCompilerType().GetIndexOfChildWithName(name, _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits