Skip to content

Commit 8ddf98a

Browse files
authored
[lldb] Remove unused GetChildAtIndexPath(...) methods from ValueObject.cpp (#75870)
This a follow-up PR from this other one: #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 dc58f78 commit 8ddf98a

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
@@ -468,14 +468,6 @@ class ValueObject {
468468
virtual lldb::ValueObjectSP GetChildAtIndex(size_t idx,
469469
bool can_create = true);
470470

471-
// The method always creates missing children in the path, if necessary.
472-
lldb::ValueObjectSP GetChildAtIndexPath(llvm::ArrayRef<size_t> idxs,
473-
size_t *index_of_error = nullptr);
474-
475-
lldb::ValueObjectSP
476-
GetChildAtIndexPath(llvm::ArrayRef<std::pair<size_t, bool>> idxs,
477-
size_t *index_of_error = nullptr);
478-
479471
// The method always creates missing children in the path, if necessary.
480472
lldb::ValueObjectSP GetChildAtNamePath(llvm::ArrayRef<llvm::StringRef> names);
481473

lldb/source/Core/ValueObject.cpp

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

395-
lldb::ValueObjectSP
396-
ValueObject::GetChildAtIndexPath(llvm::ArrayRef<size_t> idxs,
397-
size_t *index_of_error) {
398-
if (idxs.size() == 0)
399-
return GetSP();
400-
ValueObjectSP root(GetSP());
401-
402-
size_t current_index = 0;
403-
for (size_t idx : idxs) {
404-
root = root->GetChildAtIndex(idx);
405-
if (!root) {
406-
if (index_of_error)
407-
*index_of_error = current_index;
408-
return root;
409-
}
410-
current_index += 1;
411-
}
412-
return root;
413-
}
414-
415-
lldb::ValueObjectSP ValueObject::GetChildAtIndexPath(
416-
llvm::ArrayRef<std::pair<size_t, bool>> idxs, size_t *index_of_error) {
417-
if (idxs.size() == 0)
418-
return GetSP();
419-
ValueObjectSP root(GetSP());
420-
421-
size_t current_index = 0;
422-
for (std::pair<size_t, bool> idx : idxs) {
423-
root = root->GetChildAtIndex(idx.first, idx.second);
424-
if (!root) {
425-
if (index_of_error)
426-
*index_of_error = current_index;
427-
return root;
428-
}
429-
430-
current_index += 1;
431-
}
432-
return root;
433-
}
434-
435395
lldb::ValueObjectSP
436396
ValueObject::GetChildAtNamePath(llvm::ArrayRef<llvm::StringRef> names) {
437397
if (names.size() == 0)

0 commit comments

Comments
 (0)