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 */