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/machine/z8038.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/devices/machine/z8038.cpp') diff --git a/src/devices/machine/z8038.cpp b/src/devices/machine/z8038.cpp index 11662b2464f..05e3997187f 100644 --- a/src/devices/machine/z8038.cpp +++ b/src/devices/machine/z8038.cpp @@ -59,13 +59,6 @@ template void z8038_device::zbus_map<2>(address_map &map); void z8038_device::device_start() { - m_out_int_cb.resolve_all_safe(); - - m_out_E_cb.resolve_safe(); - m_out_F_cb.resolve_safe(); - m_out_H_cb.resolve_safe(); - m_out_J_cb.resolve_safe(); - save_item(NAME(m_control_2)); save_item(NAME(m_control_3)); -- cgit v1.2.3-70-g09d2