Mesa (main): util: Remove unused function timespec_passed
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jun 9 18:00:21 UTC 2022
Module: Mesa
Branch: main
Commit: ef44bbdbed6211071835de946b51ece4fe8badbf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ef44bbdbed6211071835de946b51ece4fe8badbf
Author: Yonggang Luo <luoyonggang at gmail.com>
Date: Thu Mar 31 01:54:17 2022 +0800
util: Remove unused function timespec_passed
Signed-off-by: Yonggang Luo <luoyonggang at gmail.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15497>
---
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 */
More information about the mesa-commit
mailing list