[PATCH rtems] _TOD_Adjust method is unused. Remove it.

Joel Sherrill joel at rtems.org
Mon May 15 17:13:36 UTC 2023


Use of this method was likely eliminated during the rework to use
FreeBSD bintime/sbintime.

Close #4905.
---
 cpukit/include/rtems/score/todimpl.h | 15 ---------------
 spec/build/cpukit/librtemscpu.yml    |  1 -
 2 files changed, 16 deletions(-)

diff --git a/cpukit/include/rtems/score/todimpl.h b/cpukit/include/rtems/score/todimpl.h
index ce75ff6..565e047 100644
--- a/cpukit/include/rtems/score/todimpl.h
+++ b/cpukit/include/rtems/score/todimpl.h
@@ -382,21 +382,6 @@ static inline void _TOD_Get_timeval(
 }
 
 /**
- * @brief Adjusts the Time of Time.
- *
- * This method is used to adjust the current time of day by the
- * specified amount.
- *
- * @param delta is the amount to adjust.
- *
- * @retval STATUS_SUCCESSFUL Successful operation.
- * @retval other Some error occurred.
- */
-Status_Control _TOD_Adjust(
-  const struct timespec *delta
-);
-
-/**
  * @brief Check if the TOD is Set
  *
  * @retval true The time is set.
diff --git a/spec/build/cpukit/librtemscpu.yml b/spec/build/cpukit/librtemscpu.yml
index e80be5e..93554fe 100644
--- a/spec/build/cpukit/librtemscpu.yml
+++ b/spec/build/cpukit/librtemscpu.yml
@@ -1401,7 +1401,6 @@ source:
 - cpukit/score/src/corerwlockrelease.c
 - cpukit/score/src/coresem.c
 - cpukit/score/src/coretod.c
-- cpukit/score/src/coretodadjust.c
 - cpukit/score/src/coretodcheck.c
 - cpukit/score/src/coretodhookdata.c
 - cpukit/score/src/coretodhookregister.c
-- 
1.8.3.1



More information about the devel mailing list