diff options
Diffstat (limited to 'src/emu/distate.h')
-rw-r--r-- | src/emu/distate.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/emu/distate.h b/src/emu/distate.h index c3a044bb201..2e02c3604e7 100644 --- a/src/emu/distate.h +++ b/src/emu/distate.h @@ -253,8 +253,6 @@ public: // deliberately ambiguous functions; if you have the state interface // just use it or pc() and pcbase() directly device_state_interface &state() { return *this; } - offs_t safe_pc() { return pc(); } - offs_t safe_pcbase() { return pcbase(); } public: // protected eventually @@ -311,32 +309,4 @@ protected: // iterator typedef device_interface_iterator<device_state_interface> state_interface_iterator; - - -//************************************************************************** -// INLINE HELPERS -//************************************************************************** - -//------------------------------------------------- -// device_t::safe_pc - return the current PC -// or 0 if no state object exists -//------------------------------------------------- - -inline offs_t device_t::safe_pc() const -{ - return (m_interfaces.m_state != nullptr) ? m_interfaces.m_state->pc() : 0; -} - - -//------------------------------------------------- -// device_t::safe_pcbase - return the current PC -// base or 0 if no state object exists -//------------------------------------------------- - -inline offs_t device_t::safe_pcbase() const -{ - return (m_interfaces.m_state != nullptr) ? m_interfaces.m_state->pcbase() : 0; -} - - #endif /* MAME_EMU_DISTATE_H */ |