Skip to content

Commit 18157de

Browse files
committed
src:timer: remove deprecated tick(unsigned long)
1 parent b7117dc commit 18157de

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
@@ -97,24 +97,6 @@ class Timer {
9797
}
9898
}
9999

100-
/* DEPRECATED */
101-
inline
102-
void
103-
tick(unsigned long t)
104-
{
105-
for (size_t i = 0; i < max_tasks; ++i) {
106-
struct task * const task = &tasks[i];
107-
const unsigned long duration = t - task->start;
108-
109-
if (task->handler && duration >= task->expires) {
110-
task->repeat = task->handler(task->opaque) && task->repeat;
111-
112-
if (task->repeat) task->start = t;
113-
else remove(task);
114-
}
115-
}
116-
}
117-
118100
private:
119101

120102
struct task {

0 commit comments

Comments
 (0)