mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
g65816: Replace #ifdef UNUSED_FUNCTION with [[maybe_unused]] to deter code rot
This commit is contained in:
parent
6fcd0b90f2
commit
e3256b5543
2 changed files with 2 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue