From 1f7a50b57bf59a85dafaed5e7b48bb0ec2efcc5c Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 1 Jan 2015 18:20:39 +0000 Subject: [PATCH] sched.c: Remove unused timeout_is_zero(). Found by cppcheck. --- sched.c | 6 ------ 1 file changed, 6 deletions(-) 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; -- 2.39.5