aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/src/chvt.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/kernel/src/chvt.c')
-rw-r--r--os/kernel/src/chvt.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/os/kernel/src/chvt.c b/os/kernel/src/chvt.c
index a8e3ce499..f2d6cd697 100644
--- a/os/kernel/src/chvt.c
+++ b/os/kernel/src/chvt.c
@@ -111,24 +111,4 @@ void chVTResetI(VirtualTimer *vtp) {
vtp->vt_func = (vtfunc_t)NULL;
}
-/**
- * @brief Checks if the current system time is within the specified time
- * window.
- * @note When start==end then the function returns always true because the
- * whole time range is specified.
- *
- * @param[in] start the start of the time window (inclusive)
- * @param[in] end the end of the time window (non inclusive)
- * @retval TRUE current time within the specified time window.
- * @retval FALSE current time not within the specified time window.
- *
- * @api
- */
-bool_t chTimeIsWithin(systime_t start, systime_t end) {
-
- systime_t time = chTimeNow();
- return end > start ? (time >= start) && (time < end) :
- (time >= start) || (time < end);
-}
-
/** @} */