Skip to content

Commit

Permalink
Remove softsleep, as a dead store.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Price committed Sep 9, 2021
1 parent 7ebb463 commit d7435ed
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/os/posix/inc/os-impl-timebase.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion src/os/posix/src/os-impl-timebase.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/os/rtems/inc/os-impl-timebase.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d7435ed

Please sign in to comment.