From fa9f964f738502140a48e6ce4ae7025ec6f7dd26 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 11 Jan 2017 08:49:26 +0100 Subject: score: Remove unused _States_Is_*() --- cpukit/score/include/rtems/score/statesimpl.h | 153 -------------------------- 1 file changed, 153 deletions(-) diff --git a/cpukit/score/include/rtems/score/statesimpl.h b/cpukit/score/include/rtems/score/statesimpl.h index f90a89eb7f..6aa09470e7 100644 --- a/cpukit/score/include/rtems/score/statesimpl.h +++ b/cpukit/score/include/rtems/score/statesimpl.h @@ -199,21 +199,6 @@ RTEMS_INLINE_ROUTINE bool _States_Is_ready ( return (the_states == STATES_READY); } -/** - * This function returns true if the DORMANT state is the ONLY state - * set in the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_only_dormant ( - States_Control the_states -) -{ - return (the_states == STATES_DORMANT); -} - /** * This function returns true if the DORMANT state is set in * the_states, and false otherwise. @@ -244,96 +229,6 @@ RTEMS_INLINE_ROUTINE bool _States_Is_suspended ( return (the_states & STATES_SUSPENDED); } -/** - * This function returns true if the WAITING_FOR_SEGMENT state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_segment ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_SEGMENT); -} - -/** - * This function returns true if the WAITING_FOR_MESSAGE state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_message ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_MESSAGE); -} - -/** - * This function returns true if the WAITING_FOR_EVENT state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_EVENT); -} - -/** - * This function returns true if the WAITING_FOR_SYSTEM_EVENT state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_system_event ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_SYSTEM_EVENT); -} - -/** - * This function returns true if the WAITING_FOR_MUTEX state - * is set in the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_mutex ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_MUTEX); -} - -/** - * This function returns true if the WAITING_FOR_SEMAPHORE state - * is set in the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_semaphore ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_SEMAPHORE); -} - /** * This function returns true if the WAITING_FOR_TIME state is set in * the_states, and false otherwise. @@ -349,21 +244,6 @@ RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_rpc_reply ( return (the_states & STATES_WAITING_FOR_RPC_REPLY); } -/** - * This function returns true if the WAITING_FOR_PERIOD state is set in - * the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the desired state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_period ( - States_Control the_states -) -{ - return (the_states & STATES_WAITING_FOR_PERIOD); -} - RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_join_at_exit( States_Control the_states ) @@ -403,39 +283,6 @@ RTEMS_INLINE_ROUTINE bool _States_Is_locally_blocked ( return (the_states & STATES_LOCALLY_BLOCKED); } -/** - * This function returns true if one of the states which indicates - * that a task is blocked is set in the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * - * @return This method returns true if the state indicates that the - * assocated thread is blocked. - */ -RTEMS_INLINE_ROUTINE bool _States_Is_blocked ( - States_Control the_states -) -{ - return (the_states & STATES_BLOCKED); -} - -/** - * This function returns true if any of the states in the mask - * are set in the_states, and false otherwise. - * - * @param[in] the_states is the task state set to test - * @param[in] mask is the state bits to test for - * - * @return This method returns true if the indicates state condition is set. - */ -RTEMS_INLINE_ROUTINE bool _States_Are_set ( - States_Control the_states, - States_Control mask -) -{ - return ( (the_states & mask) != STATES_READY); -} - /** @} */ #ifdef __cplusplus -- cgit v1.2.3