[Lldb-commits] [PATCH] D159387: [lldb][NFCI] Remove unused method TypeCategoryMap::Get(uint32_t, ValueSP &)
Alex Langford via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 5 10:55:16 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5bff905c0de5: [lldb][NFCI] Remove unused method TypeCategoryMap::Get(uint32_t, ValueSP &) (authored by bulbazord).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159387/new/
https://reviews.llvm.org/D159387
Files:
lldb/include/lldb/DataFormatters/TypeCategoryMap.h
lldb/source/DataFormatters/TypeCategoryMap.cpp
Index: lldb/source/DataFormatters/TypeCategoryMap.cpp
===================================================================
--- lldb/source/DataFormatters/TypeCategoryMap.cpp
+++ lldb/source/DataFormatters/TypeCategoryMap.cpp
@@ -139,20 +139,6 @@
return true;
}
-bool TypeCategoryMap::Get(uint32_t pos, ValueSP &entry) {
- std::lock_guard<std::recursive_mutex> 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,
Index: lldb/include/lldb/DataFormatters/TypeCategoryMap.h
===================================================================
--- lldb/include/lldb/DataFormatters/TypeCategoryMap.h
+++ 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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159387.555901.patch
Type: text/x-patch
Size: 1196 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230905/d18a97fe/attachment.bin>
More information about the lldb-commits
mailing list