util: Remove unused function timespec_passed

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15497>
This commit is contained in:
Yonggang Luo 2022-03-31 01:54:17 +08:00 committed by Marge Bot
parent 1cc1ebdc46
commit ef44bbdbed
1 changed files with 0 additions and 17 deletions

View File

@ -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, &current_time);
return timespec_after(&current_time, deadline);
}
#endif
#endif /* TIMESPEC_H */