[PATCH] score: Delete unused _Timestamp_Is_valid()

Gedare Bloom gedare at rtems.org
Thu Mar 19 14:54:31 UTC 2015


ok

On Thu, Mar 19, 2015 at 8:52 AM, Alexander Krutwig
<alexander.krutwig at embedded-brains.de> wrote:
> ---
>  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
> --
> 1.8.4.5
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel



More information about the devel mailing list