From 092c8be8966deee74d39a7be4b1163763373b356 Mon Sep 17 00:00:00 2001 From: AJR Date: Sat, 20 May 2017 20:33:53 -0400 Subject: [PATCH] RIP timer_pulse (nw) --- src/emu/schedule.cpp | 12 ------------ src/emu/schedule.h | 1 - 2 files changed, 13 deletions(-) diff --git a/src/emu/schedule.cpp b/src/emu/schedule.cpp index 49346b2c3b0..6de1646989e 100644 --- a/src/emu/schedule.cpp +++ b/src/emu/schedule.cpp @@ -593,18 +593,6 @@ void device_scheduler::timer_set(const attotime &duration, timer_expired_delegat } -//------------------------------------------------- -// timer_pulse - allocate an anonymous non-device -// timer and set it to go off at the given -// frequency -//------------------------------------------------- - -void device_scheduler::timer_pulse(const attotime &period, timer_expired_delegate callback, int param, void *ptr) -{ - m_timer_allocator.alloc()->init(machine(), callback, ptr, false).adjust(period, param, period); -} - - //------------------------------------------------- // timer_alloc - allocate a global device timer // and return a pointer diff --git a/src/emu/schedule.h b/src/emu/schedule.h index 0bbffedc5b0..e4925d29a8c 100644 --- a/src/emu/schedule.h +++ b/src/emu/schedule.h @@ -134,7 +134,6 @@ public: // timers, specified by callback/name emu_timer *timer_alloc(timer_expired_delegate callback, void *ptr = nullptr); void timer_set(const attotime &duration, timer_expired_delegate callback, int param = 0, void *ptr = nullptr); - void timer_pulse(const attotime &period, timer_expired_delegate callback, int param = 0, void *ptr = nullptr); void synchronize(timer_expired_delegate callback = timer_expired_delegate(), int param = 0, void *ptr = nullptr) { timer_set(attotime::zero, callback, param, ptr); } // timers, specified by device/id; generally devices should use the device_t methods instead