summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-01-25 15:45:39 -0500
committerDonald Sharp <sharpd@nvidia.com>2023-01-25 15:45:39 -0500
commite5a5e5388e26040e2a67b3f06200e5fb3056cf5c (patch)
tree033ca13762c31241f7d2e59919d54a6d44c9ba49
parentd2a174233b52c157b505fba579f154de6504f000 (diff)
lib: Remove dead code
wheel_stop and wheel_start have never been used. Let's just remove them. After close to 7 years, if needed someone else can add back in. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
-rw-r--r--lib/wheel.c15
-rw-r--r--lib/wheel.h10
2 files changed, 0 insertions, 25 deletions
diff --git a/lib/wheel.c b/lib/wheel.c
index 6e9c88de9d..f2776d6091 100644
--- a/lib/wheel.c
+++ b/lib/wheel.c
@@ -118,21 +118,6 @@ void wheel_delete(struct timer_wheel *wheel)
XFREE(MTYPE_TIMER_WHEEL, wheel);
}
-int wheel_stop(struct timer_wheel *wheel)
-{
- THREAD_OFF(wheel->timer);
- return 0;
-}
-
-int wheel_start(struct timer_wheel *wheel)
-{
- if (!wheel->timer)
- thread_add_timer_msec(wheel->master, wheel_timer_thread, wheel,
- wheel->nexttime, &wheel->timer);
-
- return 0;
-}
-
int wheel_add_item(struct timer_wheel *wheel, void *item)
{
long long slot;
diff --git a/lib/wheel.h b/lib/wheel.h
index 401789e1a0..1e5a31b9a6 100644
--- a/lib/wheel.h
+++ b/lib/wheel.h
@@ -90,16 +90,6 @@ struct timer_wheel *wheel_init(struct thread_master *master, int period,
void wheel_delete(struct timer_wheel *);
/*
- * Pause the Wheel from running
- */
-int wheel_stop(struct timer_wheel *wheel);
-
-/*
- * Start the wheel running again
- */
-int wheel_start(struct timer_wheel *wheel);
-
-/*
* wheel - The Timer wheel being modified
* item - The generic data structure that will be handed
* to the slot_run function.