From 39c7997c67425f7fb11b1249a2838348e6a65200 Mon Sep 17 00:00:00 2001 From: Erik Boasson Date: Mon, 9 Mar 2020 14:01:35 +0100 Subject: [PATCH] Remove unused dds_sleepuntil Signed-off-by: Erik Boasson --- src/ddsrt/include/dds/ddsrt/time.h | 10 ---------- src/ddsrt/src/time.c | 8 -------- 2 files changed, 18 deletions(-) diff --git a/src/ddsrt/include/dds/ddsrt/time.h b/src/ddsrt/include/dds/ddsrt/time.h index a604a5e..61992f8 100644 --- a/src/ddsrt/include/dds/ddsrt/time.h +++ b/src/ddsrt/include/dds/ddsrt/time.h @@ -86,16 +86,6 @@ DDS_EXPORT dds_time_t dds_time(void); */ DDS_EXPORT void dds_sleepfor (dds_duration_t reltime); -/** - * @brief Suspend execution of calling thread until absolute time n elapsed. - * - * Execution is suspended until the given absolute time elapsed. Should the - * call be interrupted, it is re-entered with the remaining time. - * - * @param[in] abstime Absolute time in nanoseconds since UNIX Epoch. - */ -DDS_EXPORT void dds_sleepuntil (dds_time_t abstime); - /** * @brief Get high resolution, monotonic time. * diff --git a/src/ddsrt/src/time.c b/src/ddsrt/src/time.c index a3d474f..8dfa587 100644 --- a/src/ddsrt/src/time.c +++ b/src/ddsrt/src/time.c @@ -35,14 +35,6 @@ void dds_sleepfor(dds_duration_t n) } #endif -void dds_sleepuntil(dds_time_t abstime) -{ - dds_time_t now = dds_time(); - - if (abstime > now) - dds_sleepfor (abstime - now); -} - size_t ddsrt_ctime(dds_time_t n, char *str, size_t size) {