[Lldb-commits] [lldb] 6c98c5b - [lldb][NFCI] Remove unused method BreakpointIDList::AddBreakpointID(const char *) (#79189)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 23 13:41:40 PST 2024
Author: Alex Langford
Date: 2024-01-23T13:41:36-08:00
New Revision: 6c98c5bd99b4c71a7895337cd4e437e023c2ec7a
URL: https://github.com/llvm/llvm-project/commit/6c98c5bd99b4c71a7895337cd4e437e023c2ec7a
DIFF: https://github.com/llvm/llvm-project/commit/6c98c5bd99b4c71a7895337cd4e437e023c2ec7a.diff
LOG: [lldb][NFCI] Remove unused method BreakpointIDList::AddBreakpointID(const char *) (#79189)
This overload is completely unused.
Added:
Modified:
lldb/include/lldb/Breakpoint/BreakpointIDList.h
lldb/source/Breakpoint/BreakpointIDList.cpp
Removed:
################################################################################
diff --git a/lldb/include/lldb/Breakpoint/BreakpointIDList.h b/lldb/include/lldb/Breakpoint/BreakpointIDList.h
index 3cda1860dc1672..6c57d9bc507952 100644
--- a/lldb/include/lldb/Breakpoint/BreakpointIDList.h
+++ b/lldb/include/lldb/Breakpoint/BreakpointIDList.h
@@ -42,8 +42,6 @@ class BreakpointIDList {
bool AddBreakpointID(BreakpointID bp_id);
- bool AddBreakpointID(const char *bp_id);
-
// TODO: This should take a const BreakpointID.
bool FindBreakpointID(BreakpointID &bp_id, size_t *position) const;
diff --git a/lldb/source/Breakpoint/BreakpointIDList.cpp b/lldb/source/Breakpoint/BreakpointIDList.cpp
index 51185c30dabad8..5ab2c9a8dc3865 100644
--- a/lldb/source/Breakpoint/BreakpointIDList.cpp
+++ b/lldb/source/Breakpoint/BreakpointIDList.cpp
@@ -48,15 +48,6 @@ bool BreakpointIDList::AddBreakpointID(BreakpointID bp_id) {
// return true.
}
-bool BreakpointIDList::AddBreakpointID(const char *bp_id_str) {
- auto bp_id = BreakpointID::ParseCanonicalReference(bp_id_str);
- if (!bp_id)
- return false;
-
- m_breakpoint_ids.push_back(*bp_id);
- return true;
-}
-
bool BreakpointIDList::FindBreakpointID(BreakpointID &bp_id,
size_t *position) const {
for (size_t i = 0; i < m_breakpoint_ids.size(); ++i) {
More information about the lldb-commits
mailing list