]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
sched.c: Remove unused timeout_is_zero().
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 1 Jan 2015 18:20:39 +0000 (18:20 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 12 Jan 2015 22:29:07 +0000 (23:29 +0100)
Found by cppcheck.

sched.c

diff --git a/sched.c b/sched.c
index ad3641a37d90deacf8fdf8d4d8bd08fc94a6536e..3ba7a5e83d65aac415e8820dfc6e7c43398f8419 100644 (file)
--- 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;