Skip to content

[lldb] [NFC] Remove unused WatchpointResource::SetID method #79389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions lldb/include/lldb/Breakpoint/WatchpointResource.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,6 @@ class WatchpointResource
/// A copy of the Watchpoints which own this resource.
WatchpointCollection CopyConstituentsList();

// The ID of the WatchpointResource is set by the WatchpointResourceList
// when the Resource has been set in the inferior and is being added
// to the List, in an attempt to match the hardware watchpoint register
// ordering. If a Process can correctly identify the hardware watchpoint
// register index when it has created the Resource, it may initialize it
// before it is inserted in the WatchpointResourceList.
void SetID(lldb::wp_resource_id_t);

lldb::wp_resource_id_t GetID() const;

bool Contains(lldb::addr_t addr);
Expand Down
2 changes: 0 additions & 2 deletions lldb/source/Breakpoint/WatchpointResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ void WatchpointResource::SetType(bool read, bool write) {

wp_resource_id_t WatchpointResource::GetID() const { return m_id; }

void WatchpointResource::SetID(wp_resource_id_t id) { m_id = id; }

bool WatchpointResource::Contains(addr_t addr) {
if (addr >= m_addr && addr < m_addr + m_size)
return true;
Expand Down