From e9e3173ffc23abe8f5a70cc4366331218ca96302 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Wed, 18 May 2011 17:55:25 -0700 Subject: [PATCH] timer: Remove timer_expired_at() function. This function has no users, and is a bit of a kludge anyway. --- lib/timer.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/timer.h b/lib/timer.h index 2197f934..be7bce2f 100644 --- a/lib/timer.h +++ b/lib/timer.h @@ -57,18 +57,11 @@ timer_set_expired(struct timer *timer) timer->t = LLONG_MIN; } -/* True if 'timer' had (or will have) expired at 'time'. */ -static inline bool -timer_expired_at(const struct timer *timer, long long int time) -{ - return time >= timer->t; -} - /* True if 'timer' has expired. */ static inline bool timer_expired(const struct timer *timer) { - return timer_expired_at(timer, time_msec()); + return time_msec() >= timer->t; } /* Returns ture if 'timer' will never expire. */ -- 2.30.2