From d7435ed2729ae8e960d81597854a6bbae71a2c18 Mon Sep 17 00:00:00 2001 From: Sam Price Date: Thu, 9 Sep 2021 09:09:03 -0400 Subject: [PATCH] Remove softsleep, as a dead store. --- src/os/posix/inc/os-impl-timebase.h | 1 - src/os/posix/src/os-impl-timebase.c | 1 - src/os/rtems/inc/os-impl-timebase.h | 1 - 3 files changed, 3 deletions(-) diff --git a/src/os/posix/inc/os-impl-timebase.h b/src/os/posix/inc/os-impl-timebase.h index a91a48b5c..3ac5d491e 100644 --- a/src/os/posix/inc/os-impl-timebase.h +++ b/src/os/posix/inc/os-impl-timebase.h @@ -40,7 +40,6 @@ typedef struct int assigned_signal; sigset_t sigset; sig_atomic_t reset_flag; - struct timespec softsleep; } OS_impl_timebase_internal_record_t; diff --git a/src/os/posix/src/os-impl-timebase.c b/src/os/posix/src/os-impl-timebase.c index 1c35b0279..a421e5ab7 100644 --- a/src/os/posix/src/os-impl-timebase.c +++ b/src/os/posix/src/os-impl-timebase.c @@ -365,7 +365,6 @@ int32 OS_TimeBaseCreate_Impl(const OS_object_token_t *token) } local->assigned_signal = 0; - clock_gettime(OS_PREFERRED_CLOCK, &local->softsleep); /* * Set up the necessary OS constructs diff --git a/src/os/rtems/inc/os-impl-timebase.h b/src/os/rtems/inc/os-impl-timebase.h index c651aaae1..2445905e8 100644 --- a/src/os/rtems/inc/os-impl-timebase.h +++ b/src/os/rtems/inc/os-impl-timebase.h @@ -40,7 +40,6 @@ typedef struct int assigned_signal; sigset_t sigset; sig_atomic_t reset_flag; - struct timespec softsleep; } OS_impl_timebase_internal_record_t;