timer: Remove timer_expired_at() function.
authorEthan Jackson <ethan@nicira.com>
Thu, 19 May 2011 00:55:25 +0000 (17:55 -0700)
committerEthan Jackson <ethan@nicira.com>
Thu, 19 May 2011 18:33:29 +0000 (11:33 -0700)
This function has no users, and is a bit of a kludge anyway.

lib/timer.h

index 2197f93..be7bce2 100644 (file)
@@ -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. */