From ef44bbdbed6211071835de946b51ece4fe8badbf Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Thu, 31 Mar 2022 01:54:17 +0800 Subject: [PATCH] util: Remove unused function timespec_passed Signed-off-by: Yonggang Luo Reviewed-by: Jason Ekstrand Part-of: --- src/util/timespec.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/util/timespec.h b/src/util/timespec.h index 8590f657e3f..378ebbba9e5 100644 --- a/src/util/timespec.h +++ b/src/util/timespec.h @@ -330,21 +330,4 @@ timespec_after(const struct timespec *a, const struct timespec *b) (a->tv_sec > b->tv_sec); } -#ifndef _MSC_VER -/** - * Checks whether a timespec value is after the current time - * - * \param clock_domain[in] clock in which to do the comparison - * \param deadline[in] timespec to compare - * \return whether deadline is after the current time - */ -static inline bool -timespec_passed(clockid_t clock_domain, const struct timespec *deadline) -{ - struct timespec current_time; - clock_gettime(clock_domain, ¤t_time); - return timespec_after(¤t_time, deadline); -} -#endif - #endif /* TIMESPEC_H */