[Lldb-commits] [lldb] [lldb][NFCI] Remove unused method BreakpointIDList::FindBreakpointID(const char *, size_t *) (PR #79215)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Tue Jan 23 13:54:57 PST 2024
https://github.com/bulbazord created https://github.com/llvm/llvm-project/pull/79215
None
>From 0e22f21875041f98e42b8573491bf8b9cfc1e01f Mon Sep 17 00:00:00 2001
From: Alex Langford <alangford at apple.com>
Date: Tue, 23 Jan 2024 13:54:00 -0800
Subject: [PATCH] [lldb][NFCI] Remove unused method
BreakpointIDList::FindBreakpointID(const char *, size_t *)
---
lldb/include/lldb/Breakpoint/BreakpointIDList.h | 2 --
lldb/source/Breakpoint/BreakpointIDList.cpp | 9 ---------
2 files changed, 11 deletions(-)
diff --git a/lldb/include/lldb/Breakpoint/BreakpointIDList.h b/lldb/include/lldb/Breakpoint/BreakpointIDList.h
index 6c57d9bc507952..ddf85dd78cf2e0 100644
--- a/lldb/include/lldb/Breakpoint/BreakpointIDList.h
+++ b/lldb/include/lldb/Breakpoint/BreakpointIDList.h
@@ -45,8 +45,6 @@ class BreakpointIDList {
// TODO: This should take a const BreakpointID.
bool FindBreakpointID(BreakpointID &bp_id, size_t *position) const;
- bool FindBreakpointID(const char *bp_id, size_t *position) const;
-
// Returns a pair consisting of the beginning and end of a breakpoint
// ID range expression. If the input string is not a valid specification,
// returns an empty pair.
diff --git a/lldb/source/Breakpoint/BreakpointIDList.cpp b/lldb/source/Breakpoint/BreakpointIDList.cpp
index 5ab2c9a8dc3865..5904647314bc0c 100644
--- a/lldb/source/Breakpoint/BreakpointIDList.cpp
+++ b/lldb/source/Breakpoint/BreakpointIDList.cpp
@@ -62,15 +62,6 @@ bool BreakpointIDList::FindBreakpointID(BreakpointID &bp_id,
return false;
}
-bool BreakpointIDList::FindBreakpointID(const char *bp_id_str,
- size_t *position) const {
- auto bp_id = BreakpointID::ParseCanonicalReference(bp_id_str);
- if (!bp_id)
- return false;
-
- return FindBreakpointID(*bp_id, position);
-}
-
// This function takes OLD_ARGS, which is usually the result of breaking the
// command string arguments into
// an array of space-separated strings, and searches through the arguments for
More information about the lldb-commits
mailing list