From: Andre Noll Date: Thu, 1 Jan 2015 18:20:39 +0000 (+0000) Subject: sched.c: Remove unused timeout_is_zero(). X-Git-Tag: v0.5.4~22 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=1f7a50b57bf59a85dafaed5e7b48bb0ec2efcc5c;p=paraslash.git sched.c: Remove unused timeout_is_zero(). Found by cppcheck. --- diff --git a/sched.c b/sched.c index ad3641a3..3ba7a5e8 100644 --- a/sched.c +++ b/sched.c @@ -50,12 +50,6 @@ struct task { static struct timeval now_struct; const struct timeval *now = &now_struct; -static inline bool timeout_is_zero(struct sched *s) -{ - struct timeval *tv = &s->select_timeout; - return tv->tv_sec == 0 && tv->tv_usec == 0; -} - static void sched_preselect(struct sched *s) { struct task *t, *tmp;