summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/driver.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2022-08-09 10:45:10 -0400
committer AJR <ajrhacker@users.noreply.github.com>2022-08-09 10:45:10 -0400
commitd41ef939fd39af3f8c70eb0b11745f16a1bd5e41 (patch)
tree935dcacf0fa7dc708fb4b45c722fcafa2136f38f /src/emu/driver.cpp
parentdedfb9fcd7610c7ad119dc681662b6281b67b73e (diff)
Driver device API cleanups
- Remove the confusing driver_init virtual override. The function has been de-virtualized in most drivers that were calling it explicitly, and replaced by alternate overrides in others. - Remove MCFG_VIDEO_RESET_OVERRIDE (not used anymore). - Provide MCFG_MACHINE_START_REMOVE and MCFG_VIDEO_START_REMOVE for consistency.
Diffstat (limited to 'src/emu/driver.cpp')
-rw-r--r--src/emu/driver.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/emu/driver.cpp b/src/emu/driver.cpp
index 04c6489aae3..b116d561bbb 100644
--- a/src/emu/driver.cpp
+++ b/src/emu/driver.cpp
@@ -67,7 +67,6 @@ void driver_device::static_set_callback(device_t &device, callback_type type, dr
void driver_device::empty_init()
{
- driver_init();
}
@@ -82,16 +81,6 @@ std::vector<std::string> driver_device::searchpath() const
//-------------------------------------------------
-// driver_init - default implementation which
-// does nothing
-//-------------------------------------------------
-
-void driver_device::driver_init()
-{
-}
-
-
-//-------------------------------------------------
// driver_start - default implementation which
// does nothing
//-------------------------------------------------
@@ -260,10 +249,7 @@ void driver_device::device_reset_after_children()
sound_reset();
- if (!m_callbacks[CB_VIDEO_RESET].isnull())
- m_callbacks[CB_VIDEO_RESET]();
- else
- video_reset();
+ video_reset();
}