[Lldb-commits] [lldb] ac33e65 - [lldb][NFC] Delete commented out code in AddressRange

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 11 15:42:49 PST 2021


Author: Alex Langford
Date: 2021-11-11T15:42:27-08:00
New Revision: ac33e65d2169260364e3e92fed2ba81c58d5ce33

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

LOG: [lldb][NFC] Delete commented out code in AddressRange

Added: 
    

Modified: 
    lldb/include/lldb/Core/AddressRange.h
    lldb/source/Core/AddressRange.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/Core/AddressRange.h b/lldb/include/lldb/Core/AddressRange.h
index 6fbdc35c91684..4a33c2d795876 100644
--- a/lldb/include/lldb/Core/AddressRange.h
+++ b/lldb/include/lldb/Core/AddressRange.h
@@ -242,8 +242,6 @@ class AddressRange {
   lldb::addr_t m_byte_size = 0; ///< The size in bytes of this address range.
 };
 
-// bool operator== (const AddressRange& lhs, const AddressRange& rhs);
-
 } // namespace lldb_private
 
 #endif // LLDB_CORE_ADDRESSRANGE_H

diff  --git a/lldb/source/Core/AddressRange.cpp b/lldb/source/Core/AddressRange.cpp
index af6e31a67da30..66dcda574890a 100644
--- a/lldb/source/Core/AddressRange.cpp
+++ b/lldb/source/Core/AddressRange.cpp
@@ -59,15 +59,6 @@ bool AddressRange::Contains(const Address &addr) const {
   return ContainsFileAddress(addr);
 }
 
-//
-// bool
-// AddressRange::Contains (const Address *addr) const
-//{
-//    if (addr)
-//        return Contains (*addr);
-//    return false;
-//}
-
 bool AddressRange::ContainsFileAddress(const Address &addr) const {
   if (addr.GetSection() == m_base_addr.GetSection())
     return (addr.GetOffset() - m_base_addr.GetOffset()) < GetByteSize();
@@ -212,11 +203,3 @@ void AddressRange::DumpDebug(Stream *s) const {
             static_cast<void *>(m_base_addr.GetSection().get()),
             m_base_addr.GetOffset(), GetByteSize());
 }
-//
-// bool
-// lldb::operator==    (const AddressRange& lhs, const AddressRange& rhs)
-//{
-//    if (lhs.GetBaseAddress() == rhs.GetBaseAddress())
-//        return lhs.GetByteSize() == rhs.GetByteSize();
-//    return false;
-//}


        


More information about the lldb-commits mailing list