From e9c1f4a42a6758a6fb75403e28c7dc6cf869081c Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sat, 17 Jun 2023 01:10:05 +1000 Subject: emu/devcb.h: Eliminated the need to call resolve() on callbacks. (#11333) Read callbacks now need a default return value supplied at construction. Replaced isnull() with isunset() which tells you if the callback wasn't configured rather than whether it isn't safe to call. Enabled validation of device callbacks (it seems it was disabled at some point, probably accidentally). Device callbacks and object finders now implement the same interface for resolution. --- src/devices/bus/thomson/extension.cpp | 6 ------ src/devices/bus/thomson/extension.h | 1 - 2 files changed, 7 deletions(-) (limited to 'src/devices/bus/thomson') diff --git a/src/devices/bus/thomson/extension.cpp b/src/devices/bus/thomson/extension.cpp index 205d8a24a88..4fb2cfbb7ce 100644 --- a/src/devices/bus/thomson/extension.cpp +++ b/src/devices/bus/thomson/extension.cpp @@ -31,12 +31,6 @@ void thomson_extension_device::io_map(address_space_installer &space, offs_t sta space.install_device(start, end, *dev, &thomson_extension_interface::io_map); } -void thomson_extension_device::device_resolve_objects() -{ - m_firq_callback.resolve_safe(); - m_irq_callback.resolve_safe(); -} - void thomson_extension_device::device_start() { } diff --git a/src/devices/bus/thomson/extension.h b/src/devices/bus/thomson/extension.h index 4fe83a8a007..d17b5d22536 100644 --- a/src/devices/bus/thomson/extension.h +++ b/src/devices/bus/thomson/extension.h @@ -44,7 +44,6 @@ public: void io_map(address_space_installer &space, offs_t start, offs_t end); protected: - virtual void device_resolve_objects() override; virtual void device_start() override; devcb_write_line m_firq_callback; -- cgit v1.2.3-70-g09d2