Skip to content

Commit 21e335e

Browse files
committed
Merge branch 'mc/remove-tick-unsigned-long'
* mc/remove-tick-unsigned-long: src:timer: remove deprecated tick(unsigned long)
2 parents 730836a + 18157de commit 21e335e

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/timer.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -123,24 +123,6 @@ class Timer {
123123
return ticks == (unsigned long)-1 ? 0 : ticks;
124124
}
125125

126-
/* DEPRECATED */
127-
inline
128-
void
129-
tick(unsigned long t)
130-
{
131-
for (size_t i = 0; i < max_tasks; ++i) {
132-
struct task * const task = &tasks[i];
133-
const unsigned long duration = t - task->start;
134-
135-
if (task->handler && duration >= task->expires) {
136-
task->repeat = task->handler(task->opaque) && task->repeat;
137-
138-
if (task->repeat) task->start = t;
139-
else remove(task);
140-
}
141-
}
142-
}
143-
144126
private:
145127

146128
size_t ctr;

0 commit comments

Comments
 (0)