summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-05-18 17:55:25 -0700
committerEthan Jackson <ethan@nicira.com>2011-05-19 11:33:29 -0700
commite9e3173ffc23abe8f5a70cc4366331218ca96302 (patch)
tree0aa77cfa36ab5d83f085030d810fd3dc0bf1a7b0
parentcfc693d6103e86d46706d909ced19940a8e35784 (diff)
downloadopenvswitch-e9e3173ffc23abe8f5a70cc4366331218ca96302.tar.gz
timer: Remove timer_expired_at() function.
This function has no users, and is a bit of a kludge anyway.
-rw-r--r--lib/timer.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/timer.h b/lib/timer.h
index 2197f9348..be7bce2f4 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. */