Remove redundant callback parameter from createTimer.
This commit is contained in:
parent
5ec6b9a5e5
commit
5298e00c09
|
@ -80,7 +80,7 @@ interface EventDriver {
|
|||
//
|
||||
// Timers
|
||||
//
|
||||
TimerID createTimer(TimerCallback callback);
|
||||
TimerID createTimer();
|
||||
void setTimer(TimerID timer, Duration timeout, Duration repeat = Duration.zero);
|
||||
void stopTimer(TimerID timer);
|
||||
bool isTimerPending(TimerID timer);
|
||||
|
|
|
@ -66,7 +66,7 @@ mixin template DefaultTimerImpl() {
|
|||
m_firedTimers.assumeSafeAppend();
|
||||
}
|
||||
|
||||
final override TimerID createTimer(TimerCallback callback)
|
||||
final override TimerID createTimer()
|
||||
@trusted {
|
||||
auto id = cast(TimerID)(m_lastTimerID + 1);
|
||||
TimerSlot* tm;
|
||||
|
@ -75,7 +75,6 @@ mixin template DefaultTimerImpl() {
|
|||
assert(tm !is null);
|
||||
tm.id = id;
|
||||
tm.refCount = 1;
|
||||
tm.callbacks ~= callback;
|
||||
m_timers[id] = tm;
|
||||
return id;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue