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:
parent
1cc1ebdc46
commit
ef44bbdbed
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue