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 authored and dzbaker committed Jan 20, 2023
1 parent a9fece5 commit da4fa3d
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 @@ -38,7 +38,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 @@ -355,7 +355,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 @@ -38,7 +38,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 da4fa3d

Please sign in to comment.