mirror of
https://github.com/holub/mame
synced 2025-05-06 22:35:43 +03:00
removed unused legacy_callback_func (nw)
This commit is contained in:
parent
b01611363a
commit
f67c7598c1
@ -46,7 +46,6 @@ driver_device::driver_device(const machine_config &mconfig, device_type type, co
|
|||||||
m_flip_screen_x(0),
|
m_flip_screen_x(0),
|
||||||
m_flip_screen_y(0)
|
m_flip_screen_y(0)
|
||||||
{
|
{
|
||||||
memset(m_legacy_callbacks, 0, sizeof(m_legacy_callbacks));
|
|
||||||
memset(m_latched_value, 0, sizeof(m_latched_value));
|
memset(m_latched_value, 0, sizeof(m_latched_value));
|
||||||
memset(m_latch_read, 0, sizeof(m_latch_read));
|
memset(m_latch_read, 0, sizeof(m_latch_read));
|
||||||
}
|
}
|
||||||
@ -91,11 +90,6 @@ void driver_device::static_set_game(device_t &device, const game_driver &game)
|
|||||||
// the device configuration
|
// the device configuration
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
void driver_device::static_set_callback(device_t &device, callback_type type, legacy_callback_func callback)
|
|
||||||
{
|
|
||||||
downcast<driver_device &>(device).m_legacy_callbacks[type] = callback;
|
|
||||||
}
|
|
||||||
|
|
||||||
void driver_device::static_set_callback(device_t &device, callback_type type, driver_callback_delegate callback)
|
void driver_device::static_set_callback(device_t &device, callback_type type, driver_callback_delegate callback)
|
||||||
{
|
{
|
||||||
downcast<driver_device &>(device).m_callbacks[type] = callback;
|
downcast<driver_device &>(device).m_callbacks[type] = callback;
|
||||||
@ -211,11 +205,6 @@ ioport_constructor driver_device::device_input_ports() const
|
|||||||
|
|
||||||
void driver_device::device_start()
|
void driver_device::device_start()
|
||||||
{
|
{
|
||||||
// bind our legacy callbacks
|
|
||||||
for (int index = 0; index < ARRAY_LENGTH(m_legacy_callbacks); index++)
|
|
||||||
if (m_legacy_callbacks[index] != NULL)
|
|
||||||
m_callbacks[index] = driver_callback_delegate(m_legacy_callbacks[index], "legacy_callback", &machine());
|
|
||||||
|
|
||||||
// reschedule ourselves to be last
|
// reschedule ourselves to be last
|
||||||
device_iterator iter(*this);
|
device_iterator iter(*this);
|
||||||
for (device_t *test = iter.first(); test != NULL; test = iter.next())
|
for (device_t *test = iter.first(); test != NULL; test = iter.next())
|
||||||
|
@ -98,9 +98,6 @@ class gfxdecode_device;
|
|||||||
class palette_device;
|
class palette_device;
|
||||||
typedef delegate<void ()> driver_callback_delegate;
|
typedef delegate<void ()> driver_callback_delegate;
|
||||||
|
|
||||||
// legacy callback functions
|
|
||||||
/*ATTR_DEPRECATED*/ typedef void (*legacy_callback_func)(running_machine &machine);
|
|
||||||
|
|
||||||
|
|
||||||
// ======================> driver_device
|
// ======================> driver_device
|
||||||
|
|
||||||
@ -130,7 +127,6 @@ public:
|
|||||||
|
|
||||||
// inline configuration helpers
|
// inline configuration helpers
|
||||||
static void static_set_game(device_t &device, const game_driver &game);
|
static void static_set_game(device_t &device, const game_driver &game);
|
||||||
ATTR_DEPRECATED static void static_set_callback(device_t &device, callback_type type, legacy_callback_func callback);
|
|
||||||
static void static_set_callback(device_t &device, callback_type type, driver_callback_delegate callback);
|
static void static_set_callback(device_t &device, callback_type type, driver_callback_delegate callback);
|
||||||
|
|
||||||
// generic helpers
|
// generic helpers
|
||||||
@ -291,7 +287,6 @@ private:
|
|||||||
// internal state
|
// internal state
|
||||||
const game_driver * m_system; // pointer to the game driver
|
const game_driver * m_system; // pointer to the game driver
|
||||||
driver_callback_delegate m_callbacks[CB_COUNT]; // start/reset callbacks
|
driver_callback_delegate m_callbacks[CB_COUNT]; // start/reset callbacks
|
||||||
legacy_callback_func m_legacy_callbacks[CB_COUNT]; // legacy start/reset callbacks
|
|
||||||
|
|
||||||
// generic audio
|
// generic audio
|
||||||
UINT16 m_latch_clear_value;
|
UINT16 m_latch_clear_value;
|
||||||
|
Loading…
Reference in New Issue
Block a user