Author: Alex Langford
Date: 2026-08-24T13:10:13-07:00
New Revision: 516ee5dec285b39c75d5d99ad2ff427dfeb341ba

URL: 
https://github.com/llvm/llvm-project/commit/516ee5dec285b39c75d5d99ad2ff427dfeb341ba
DIFF: 
https://github.com/llvm/llvm-project/commit/516ee5dec285b39c75d5d99ad2ff427dfeb341ba.diff

LOG: [lldb][NFC] Remove unused overload for 
PathMappingList::FindIteratorForPath (#218481)

Added: 
    

Modified: 
    lldb/include/lldb/Target/PathMappingList.h
    lldb/source/Target/PathMappingList.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/Target/PathMappingList.h 
b/lldb/include/lldb/Target/PathMappingList.h
index 2cf9569358f52..e64b09be1aaaa 100644
--- a/lldb/include/lldb/Target/PathMappingList.h
+++ b/lldb/include/lldb/Target/PathMappingList.h
@@ -150,8 +150,6 @@ class PathMappingList {
 
   iterator FindIteratorForPath(ConstString path);
 
-  const_iterator FindIteratorForPath(ConstString path) const;
-
   collection m_pairs;
   mutable std::mutex m_pairs_mutex;
 

diff  --git a/lldb/source/Target/PathMappingList.cpp 
b/lldb/source/Target/PathMappingList.cpp
index 0465b4280bbb1..251cb84837720 100644
--- a/lldb/source/Target/PathMappingList.cpp
+++ b/lldb/source/Target/PathMappingList.cpp
@@ -318,20 +318,6 @@ bool PathMappingList::Remove(ConstString path, bool 
notify) {
   return true;
 }
 
-PathMappingList::const_iterator
-PathMappingList::FindIteratorForPath(ConstString path) const {
-  std::lock_guard<std::mutex> lock(m_pairs_mutex);
-  const_iterator pos;
-  const_iterator begin = m_pairs.begin();
-  const_iterator end = m_pairs.end();
-
-  for (pos = begin; pos != end; ++pos) {
-    if (pos->first == path)
-      break;
-  }
-  return pos;
-}
-
 PathMappingList::iterator
 PathMappingList::FindIteratorForPath(ConstString path) {
   std::lock_guard<std::mutex> lock(m_pairs_mutex);


        
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to