diff --git a/lldb/include/lldb/Core/ValueObject.h b/lldb/include/lldb/Core/ValueObject.h --- a/lldb/include/lldb/Core/ValueObject.h +++ b/lldb/include/lldb/Core/ValueObject.h @@ -479,10 +479,6 @@ // this will always create the children if necessary lldb::ValueObjectSP GetChildAtNamePath(llvm::ArrayRef names); - lldb::ValueObjectSP - GetChildAtNamePath(llvm::ArrayRef> 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 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -440,23 +440,6 @@ return root; } -lldb::ValueObjectSP ValueObject::GetChildAtNamePath( - llvm::ArrayRef> names, - ConstString *name_of_error) { - if (names.size() == 0) - return GetSP(); - ValueObjectSP root(GetSP()); - for (std::pair 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,