[rtems commit] score: Delete unused _Timestamp_Is_valid()
Sebastian Huber
sebh at rtems.org
Thu Mar 19 15:41:54 UTC 2015
Module: rtems
Branch: master
Commit: e0a25fb6372ea4aa23a8221d856d8319b53636d9
Changeset: http://git.rtems.org/rtems/commit/?id=e0a25fb6372ea4aa23a8221d856d8319b53636d9
Author: Alexander Krutwig <alexander.krutwig at embedded-brains.de>
Date: Thu Mar 19 13:52:22 2015 +0100
score: Delete unused _Timestamp_Is_valid()
---
cpukit/score/include/rtems/score/timestamp.h | 18 ------------------
cpukit/score/include/rtems/score/timestamp64.h | 13 -------------
2 files changed, 31 deletions(-)
diff --git a/cpukit/score/include/rtems/score/timestamp.h b/cpukit/score/include/rtems/score/timestamp.h
index 895afcc..5c23979 100644
--- a/cpukit/score/include/rtems/score/timestamp.h
+++ b/cpukit/score/include/rtems/score/timestamp.h
@@ -109,24 +109,6 @@ extern "C" {
#endif
/**
- * @brief Determines the validity of a timestamp.
- *
- * This method determines the validity of a timestamp.
- *
- * @param[in] _time points to the timestamp instance to validate.
- *
- * @retval This method returns true if @a time is valid and
- * false otherwise.
- */
-#if CPU_TIMESTAMP_USE_STRUCT_TIMESPEC == TRUE
- #define _Timestamp_Is_valid( _time ) \
- _Timespec_Is_valid( _time )
-#else
- #define _Timestamp_Is_valid( _time ) \
- _Timestamp64_Is_valid( _time )
-#endif
-
-/**
* @brief Less than operator for timestamps.
*
* This method is the less than operator for timestamps.
diff --git a/cpukit/score/include/rtems/score/timestamp64.h b/cpukit/score/include/rtems/score/timestamp64.h
index 55b7d07..3d40ca2 100644
--- a/cpukit/score/include/rtems/score/timestamp64.h
+++ b/cpukit/score/include/rtems/score/timestamp64.h
@@ -106,19 +106,6 @@ static inline void _Timestamp64_implementation_Set_to_zero(
);
#endif
-/**
- * @brief Determines the validity of a 64-bit timestamp.
- *
- * This method determines the validity of a timestamp.
- *
- * @param[in] _time points to the timestamp instance to validate.
- *
- * @retval This method returns true if @a time is valid and
- * false otherwise.
- */
-#define _Timestamp64_Is_valid( _time ) \
- (1)
-
static inline bool _Timestamp64_implementation_Less_than(
const Timestamp64_Control *_lhs,
const Timestamp64_Control *_rhs
More information about the vc
mailing list