diff --git a/rtc_base/task_utils/repeating_task.h b/rtc_base/task_utils/repeating_task.h index ee6035cad0..eaf2a4b684 100644 --- a/rtc_base/task_utils/repeating_task.h +++ b/rtc_base/task_utils/repeating_task.h @@ -101,10 +101,6 @@ class RepeatingTaskHandle { task_queue->PostTask(std::move(repeating_task)); return RepeatingTaskHandle(repeating_task_ptr); } - template - static RepeatingTaskHandle Start(Closure&& closure) { - return Start(TaskQueueBase::Current(), std::forward(closure)); - } // DelayedStart is equivalent to Start except that the first invocation of the // closure will be delayed by the given amount. @@ -119,12 +115,6 @@ class RepeatingTaskHandle { task_queue->PostDelayedTask(std::move(repeating_task), first_delay.ms()); return RepeatingTaskHandle(repeating_task_ptr); } - template - static RepeatingTaskHandle DelayedStart(TimeDelta first_delay, - Closure&& closure) { - return DelayedStart(TaskQueueBase::Current(), first_delay, - std::forward(closure)); - } // Stops future invocations of the repeating task closure. Can only be called // from the TaskQueue where the task is running. The closure is guaranteed to