Author: Alex Langford
Date: 2023-09-29T12:06:13-07:00
New Revision: 2e12fc3d04032be743b2aded354d81d53c5195ec

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

LOG: [lldb][NFCI] Remove unused constructors from BreakpointName

There is only one constructor in use so the rest can be removed.

Added: 
    

Modified: 
    lldb/include/lldb/Breakpoint/BreakpointName.h
    lldb/source/Breakpoint/BreakpointName.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/Breakpoint/BreakpointName.h 
b/lldb/include/lldb/Breakpoint/BreakpointName.h
index 8786dbc9a163517..22f017c77b26030 100644
--- a/lldb/include/lldb/Breakpoint/BreakpointName.h
+++ b/lldb/include/lldb/Breakpoint/BreakpointName.h
@@ -141,23 +141,11 @@ class BreakpointName {
    {
      SetHelp(help);
    }
-      
-  BreakpointName(ConstString name,
-                 BreakpointOptions &options,
-                 const Permissions &permissions = Permissions(),
-                 const char *help = nullptr) :
-      m_name(name), m_options(options), 
-      m_permissions(permissions) {
-        SetHelp(help);
-  };
   
   BreakpointName(const BreakpointName &rhs) :
       m_name(rhs.m_name), m_options(rhs.m_options),
       m_permissions(rhs.m_permissions), m_help(rhs.m_help)
   {}
-  
-  BreakpointName(ConstString name, const Breakpoint &bkpt,
-                 const char *help);
       
   ConstString GetName() const { return m_name; }
   BreakpointOptions &GetOptions() { return m_options; }

diff  --git a/lldb/source/Breakpoint/BreakpointName.cpp 
b/lldb/source/Breakpoint/BreakpointName.cpp
index cb513fb436d6fe2..5a4aad172fc028a 100644
--- a/lldb/source/Breakpoint/BreakpointName.cpp
+++ b/lldb/source/Breakpoint/BreakpointName.cpp
@@ -28,13 +28,6 @@ const Flags::ValueType 
BreakpointName::Permissions::permissions_mask
       (0x5u)
 };
 
-BreakpointName::BreakpointName(ConstString name, const Breakpoint &bkpt,
-                 const char *help) :
-      m_name(name), m_options(bkpt.GetOptions())
-{
-  SetHelp(help);
-}
-
 bool BreakpointName::Permissions::GetDescription(Stream *s,
                                                  lldb::DescriptionLevel level) 
{
     if (!AnySet())


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to