Skip to content

Commit 5bff905

Browse files
committed
[lldb][NFCI] Remove unused method TypeCategoryMap::Get(uint32_t, ValueSP &)
Differential Revision: https://reviews.llvm.org/D159387
1 parent fbdf684 commit 5bff905

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

lldb/include/lldb/DataFormatters/TypeCategoryMap.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ class TypeCategoryMap {
6363

6464
bool Get(KeyType name, ValueSP &entry);
6565

66-
bool Get(uint32_t pos, ValueSP &entry);
67-
6866
void ForEach(ForEachCallback callback);
6967

7068
lldb::TypeCategoryImplSP GetAtIndex(uint32_t);

lldb/source/DataFormatters/TypeCategoryMap.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -139,20 +139,6 @@ bool TypeCategoryMap::Get(KeyType name, ValueSP &entry) {
139139
return true;
140140
}
141141

142-
bool TypeCategoryMap::Get(uint32_t pos, ValueSP &entry) {
143-
std::lock_guard<std::recursive_mutex> guard(m_map_mutex);
144-
MapIterator iter = m_map.begin();
145-
MapIterator end = m_map.end();
146-
while (pos > 0) {
147-
iter++;
148-
pos--;
149-
if (iter == end)
150-
return false;
151-
}
152-
entry = iter->second;
153-
return false;
154-
}
155-
156142
bool TypeCategoryMap::AnyMatches(
157143
const FormattersMatchCandidate &candidate_type,
158144
TypeCategoryImpl::FormatCategoryItems items, bool only_enabled,

0 commit comments

Comments
 (0)