g65816: Replace #ifdef UNUSED_FUNCTION with [[maybe_unused]] to deter code rot

This commit is contained in:
AJR 2021-12-01 08:05:33 -05:00
parent 6fcd0b90f2
commit e3256b5543
2 changed files with 2 additions and 6 deletions

View file

@ -771,7 +771,6 @@ void g65816_device::g65816_set_pc(unsigned val)
g65816_jumping(REGISTER_PB | REGISTER_PC);
}
#ifdef UNUSED_FUNCTION
/* Get the current Stack Pointer */
unsigned g65816_device::g65816_get_sp()
{
@ -783,7 +782,6 @@ void g65816_device::g65816_set_sp(unsigned val)
{
REGISTER_S = FLAG_E ? MAKE_UINT_8(val) | 0x100 : MAKE_UINT_16(val);
}
#endif
/* Get a register */
unsigned g65816_device::g65816_get_reg(int regnum)

View file

@ -140,10 +140,8 @@ protected:
int bus_5A22_cycle_burst(unsigned addr);
unsigned g65816_get_pc();
void g65816_set_pc(unsigned val);
#ifdef UNUSED_FUNCTION
unsigned g65816_get_sp();
void g65816_set_sp(unsigned val);
#endif
[[maybe_unused]] unsigned g65816_get_sp();
[[maybe_unused]] void g65816_set_sp(unsigned val);
public:
unsigned g65816_get_reg(int regnum);
void g65816_set_reg(int regnum, unsigned value);