[PATCH 2/5] score: Remove unused _States_Is_*()

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jan 11 10:22:46 UTC 2017


---
 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 f90a89e..6aa0947 100644
--- a/cpukit/score/include/rtems/score/statesimpl.h
+++ b/cpukit/score/include/rtems/score/statesimpl.h
@@ -200,21 +200,6 @@ RTEMS_INLINE_ROUTINE bool _States_Is_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.
  *
@@ -245,96 +230,6 @@ RTEMS_INLINE_ROUTINE bool _States_Is_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
-- 
1.8.4.5




More information about the devel mailing list