[Lldb-commits] [lldb] f6ca15c - [lldb][NFCI] Remove unused method ProcessStructReader::GetOffsetOf

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 14 14:46:27 PDT 2023


Author: Alex Langford
Date: 2023-06-14T14:45:21-07:00
New Revision: f6ca15cfb20983e2a966efad663a25bd61826c07

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

LOG: [lldb][NFCI] Remove unused method ProcessStructReader::GetOffsetOf

Completely unused here, AFAICT. It's also not used in the swift
downstream forks.

Added: 
    

Modified: 
    lldb/include/lldb/Target/ProcessStructReader.h

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/Target/ProcessStructReader.h b/lldb/include/lldb/Target/ProcessStructReader.h
index 4af51cac32890..ceb70528cf2d1 100644
--- a/lldb/include/lldb/Target/ProcessStructReader.h
+++ b/lldb/include/lldb/Target/ProcessStructReader.h
@@ -92,13 +92,6 @@ class ProcessStructReader {
       return fail_value;
     return (RetType)(m_data.GetMaxU64(&offset, size));
   }
-
-  size_t GetOffsetOf(ConstString name, size_t fail_value = SIZE_MAX) {
-    auto iter = m_fields.find(name), end = m_fields.end();
-    if (iter == end)
-      return fail_value;
-    return iter->second.offset;
-  }
 };
 }
 


        


More information about the lldb-commits mailing list