Skip to content

Commit b06ec5c

Browse files
committed
[lldb] Remove unused GetChildAtIndexPath(...) methods from ValueObject.cpp (llvm#75870)
This a follow-up PR from this other one: llvm#74413 Nothing calls into these two methods, so we (@DavidSpickett, @adrian-prantl, and I) agreed to remove them once we merged the previous PR.
1 parent 95be024 commit b06ec5c

File tree

2 files changed

+0
-48
lines changed

2 files changed

+0
-48
lines changed

lldb/include/lldb/Core/ValueObject.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -473,14 +473,6 @@ class ValueObject {
473473
virtual lldb::ValueObjectSP GetChildAtIndex(size_t idx,
474474
bool can_create = true);
475475

476-
// The method always creates missing children in the path, if necessary.
477-
lldb::ValueObjectSP GetChildAtIndexPath(llvm::ArrayRef<size_t> idxs,
478-
size_t *index_of_error = nullptr);
479-
480-
lldb::ValueObjectSP
481-
GetChildAtIndexPath(llvm::ArrayRef<std::pair<size_t, bool>> idxs,
482-
size_t *index_of_error = nullptr);
483-
484476
// The method always creates missing children in the path, if necessary.
485477
lldb::ValueObjectSP GetChildAtNamePath(llvm::ArrayRef<llvm::StringRef> names);
486478

lldb/source/Core/ValueObject.cpp

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -479,46 +479,6 @@ ValueObjectSP ValueObject::GetChildAtIndex(size_t idx, bool can_create) {
479479
return child_sp;
480480
}
481481

482-
lldb::ValueObjectSP
483-
ValueObject::GetChildAtIndexPath(llvm::ArrayRef<size_t> idxs,
484-
size_t *index_of_error) {
485-
if (idxs.size() == 0)
486-
return GetSP();
487-
ValueObjectSP root(GetSP());
488-
489-
size_t current_index = 0;
490-
for (size_t idx : idxs) {
491-
root = root->GetChildAtIndex(idx);
492-
if (!root) {
493-
if (index_of_error)
494-
*index_of_error = current_index;
495-
return root;
496-
}
497-
current_index += 1;
498-
}
499-
return root;
500-
}
501-
502-
lldb::ValueObjectSP ValueObject::GetChildAtIndexPath(
503-
llvm::ArrayRef<std::pair<size_t, bool>> idxs, size_t *index_of_error) {
504-
if (idxs.size() == 0)
505-
return GetSP();
506-
ValueObjectSP root(GetSP());
507-
508-
size_t current_index = 0;
509-
for (std::pair<size_t, bool> idx : idxs) {
510-
root = root->GetChildAtIndex(idx.first, idx.second);
511-
if (!root) {
512-
if (index_of_error)
513-
*index_of_error = current_index;
514-
return root;
515-
}
516-
517-
current_index += 1;
518-
}
519-
return root;
520-
}
521-
522482
lldb::ValueObjectSP
523483
ValueObject::GetChildAtNamePath(llvm::ArrayRef<llvm::StringRef> names) {
524484
if (names.size() == 0)

0 commit comments

Comments
 (0)