diff --git a/lldb/include/lldb/Target/DynamicRegisterInfo.h b/lldb/include/lldb/Target/DynamicRegisterInfo.h --- a/lldb/include/lldb/Target/DynamicRegisterInfo.h +++ b/lldb/include/lldb/Target/DynamicRegisterInfo.h @@ -55,8 +55,6 @@ const lldb_private::RegisterInfo *GetRegisterInfoAtIndex(uint32_t i) const; - lldb_private::RegisterInfo *GetRegisterInfoAtIndex(uint32_t i); - const lldb_private::RegisterSet *GetRegisterSet(uint32_t i) const; uint32_t GetRegisterSetIndexByName(lldb_private::ConstString &set_name, diff --git a/lldb/source/Target/DynamicRegisterInfo.cpp b/lldb/source/Target/DynamicRegisterInfo.cpp --- a/lldb/source/Target/DynamicRegisterInfo.cpp +++ b/lldb/source/Target/DynamicRegisterInfo.cpp @@ -691,12 +691,6 @@ return nullptr; } -RegisterInfo *DynamicRegisterInfo::GetRegisterInfoAtIndex(uint32_t i) { - if (i < m_regs.size()) - return &m_regs[i]; - return nullptr; -} - const RegisterInfo *DynamicRegisterInfo::GetRegisterInfo(uint32_t kind, uint32_t num) const { uint32_t reg_index = ConvertRegisterKindToRegisterNumber(kind, num);