diff --git a/lldb/include/lldb/DataFormatters/TypeCategoryMap.h b/lldb/include/lldb/DataFormatters/TypeCategoryMap.h --- a/lldb/include/lldb/DataFormatters/TypeCategoryMap.h +++ b/lldb/include/lldb/DataFormatters/TypeCategoryMap.h @@ -63,8 +63,6 @@ bool Get(KeyType name, ValueSP &entry); - bool Get(uint32_t pos, ValueSP &entry); - void ForEach(ForEachCallback callback); lldb::TypeCategoryImplSP GetAtIndex(uint32_t); diff --git a/lldb/source/DataFormatters/TypeCategoryMap.cpp b/lldb/source/DataFormatters/TypeCategoryMap.cpp --- a/lldb/source/DataFormatters/TypeCategoryMap.cpp +++ b/lldb/source/DataFormatters/TypeCategoryMap.cpp @@ -139,20 +139,6 @@ return true; } -bool TypeCategoryMap::Get(uint32_t pos, ValueSP &entry) { - std::lock_guard guard(m_map_mutex); - MapIterator iter = m_map.begin(); - MapIterator end = m_map.end(); - while (pos > 0) { - iter++; - pos--; - if (iter == end) - return false; - } - entry = iter->second; - return false; -} - bool TypeCategoryMap::AnyMatches( const FormattersMatchCandidate &candidate_type, TypeCategoryImpl::FormatCategoryItems items, bool only_enabled,