From f66b5363431ccf23debbdfacb63c09c2c57b6ada Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 16 Apr 2022 12:49:50 -0600 Subject: [PATCH] Remove symbol::aclass_index Symbols have an aclass_index method, but this isn't needed, because the aclass index isn't useful outside of the symbol implementation. --- gdb/symtab.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gdb/symtab.h b/gdb/symtab.h index 0adedd9841a..433c36618e2 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1221,11 +1221,6 @@ struct symbol : public general_symbol_info, public allocate_on_obstack symbol (const symbol &) = default; symbol &operator= (const symbol &) = default; - unsigned int aclass_index () const - { - return m_aclass_index; - } - void set_aclass_index (unsigned int aclass_index) { m_aclass_index = aclass_index; @@ -1233,7 +1228,7 @@ struct symbol : public general_symbol_info, public allocate_on_obstack const symbol_impl &impl () const { - return symbol_impls[this->aclass_index ()]; + return symbol_impls[this->m_aclass_index]; } address_class aclass () const -- 2.30.2