[rtems commit] Delete unused *_Is_null() functions

Sebastian Huber sebh at rtems.org
Sat Jul 26 10:45:09 UTC 2014


Module:    rtems
Branch:    master
Commit:    4cd55724bbc6c125be4669ea4343e93cb7108d3b
Changeset: http://git.rtems.org/rtems/commit/?id=4cd55724bbc6c125be4669ea4343e93cb7108d3b

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sat Jul 26 12:52:22 2014 +0200

Delete unused *_Is_null() functions

---

 cpukit/posix/include/rtems/posix/barrierimpl.h  |   19 -------------------
 cpukit/posix/include/rtems/posix/condimpl.h     |   14 --------------
 cpukit/posix/include/rtems/posix/mqueueimpl.h   |   13 -------------
 cpukit/posix/include/rtems/posix/muteximpl.h    |   15 ---------------
 cpukit/posix/include/rtems/posix/pthreadimpl.h  |   16 ----------------
 cpukit/posix/include/rtems/posix/rwlockimpl.h   |   19 -------------------
 cpukit/posix/include/rtems/posix/spinlockimpl.h |   19 -------------------
 cpukit/posix/include/rtems/posix/timerimpl.h    |   12 ------------
 cpukit/rtems/include/rtems/rtems/barrierimpl.h  |   11 -----------
 cpukit/rtems/include/rtems/rtems/dpmemimpl.h    |   12 ------------
 cpukit/rtems/include/rtems/rtems/messageimpl.h  |   14 --------------
 cpukit/rtems/include/rtems/rtems/partimpl.h     |   13 -------------
 cpukit/rtems/include/rtems/rtems/ratemonimpl.h  |   12 ------------
 cpukit/rtems/include/rtems/rtems/regionimpl.h   |   12 ------------
 cpukit/rtems/include/rtems/rtems/timerimpl.h    |   12 ------------
 cpukit/sapi/include/rtems/extensionimpl.h       |    7 -------
 cpukit/score/include/rtems/score/chainimpl.h    |   17 -----------------
 cpukit/score/include/rtems/score/coremsgimpl.h  |   10 ----------
 cpukit/score/include/rtems/score/rbtreeimpl.h   |   15 ---------------
 19 files changed, 0 insertions(+), 262 deletions(-)

diff --git a/cpukit/posix/include/rtems/posix/barrierimpl.h b/cpukit/posix/include/rtems/posix/barrierimpl.h
index af220b9..240abad 100644
--- a/cpukit/posix/include/rtems/posix/barrierimpl.h
+++ b/cpukit/posix/include/rtems/posix/barrierimpl.h
@@ -106,25 +106,6 @@ RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Get (
   );
 }
 
-/**
- * @brief Check if a barrier control block is NULL.
- *
- * This function returns @c TRUE if the_barrier is @c NULL and @c FALSE
- * otherwise.
- * 
- * @param[in] the_barrier is the pointer to the barrier control block
- * to be checked.
- * 
- * @retval TRUE The barrier control block is @c NULL.
- * @retval FALSE The barrier control block is not @c NULL.
- */
-RTEMS_INLINE_ROUTINE bool _POSIX_Barrier_Is_null (
-  POSIX_Barrier_Control *the_barrier
-)
-{
-  return ( the_barrier == NULL );
-}
-
 #ifdef __cplusplus
 }
 #endif
diff --git a/cpukit/posix/include/rtems/posix/condimpl.h b/cpukit/posix/include/rtems/posix/condimpl.h
index 66f4f63..435127e 100644
--- a/cpukit/posix/include/rtems/posix/condimpl.h
+++ b/cpukit/posix/include/rtems/posix/condimpl.h
@@ -95,20 +95,6 @@ POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get (
 );
 
 /**
- *  @brief POSIX Condition Variable Is NULL
- *
- *  This function returns TRUE if @a the_condition variable is NULL
- *  and FALSE otherwise.
- */
-RTEMS_INLINE_ROUTINE bool _POSIX_Condition_variables_Is_null (
-  POSIX_Condition_variables_Control *the_condition_variable
-)
-{
-  return !the_condition_variable;
-}
-
-
-/**
  * @brief Implements wake up version of the "signal" operation.
  * 
  * A support routine which implements guts of the broadcast and single task
diff --git a/cpukit/posix/include/rtems/posix/mqueueimpl.h b/cpukit/posix/include/rtems/posix/mqueueimpl.h
index a72a9e8..bfc850d 100644
--- a/cpukit/posix/include/rtems/posix/mqueueimpl.h
+++ b/cpukit/posix/include/rtems/posix/mqueueimpl.h
@@ -168,19 +168,6 @@ RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control *_POSIX_Message_queue_Get (
     _Objects_Get( &_POSIX_Message_queue_Information, id, location );
 }
 
-/**
- *  @brief POSIX Message Queue Is NULL
- *
- *  This function returns TRUE if the_message_queue is NULL and FALSE otherwise.
- */
-RTEMS_INLINE_ROUTINE bool _POSIX_Message_queue_Is_null (
-  POSIX_Message_queue_Control *the_mq
-)
-{
-  return !the_mq;
-}
-
-
 /*
  *  @brief POSIX Message Queue Convert Message Priority to Score
  *
diff --git a/cpukit/posix/include/rtems/posix/muteximpl.h b/cpukit/posix/include/rtems/posix/muteximpl.h
index 05c80ce..e5955a6 100644
--- a/cpukit/posix/include/rtems/posix/muteximpl.h
+++ b/cpukit/posix/include/rtems/posix/muteximpl.h
@@ -150,21 +150,6 @@ POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable (
   Objects_Locations *location,
   ISR_Level         *level
 );
- 
-/**
- *  @brief POSIX Mutex Is NULL
- *
- *  This method is used to determine if a pointer to a POSIX mutex is NULL.
- *
- *  @return This method returns TRUE if @a the_mutex is NULL and FALSE
- *          otherwise.
- */
-RTEMS_INLINE_ROUTINE bool _POSIX_Mutex_Is_null (
-  POSIX_Mutex_Control *the_mutex
-)
-{
-  return !the_mutex;
-}
 
 #ifdef __cplusplus
 }
diff --git a/cpukit/posix/include/rtems/posix/pthreadimpl.h b/cpukit/posix/include/rtems/posix/pthreadimpl.h
index af5ddab..bf2d68e 100644
--- a/cpukit/posix/include/rtems/posix/pthreadimpl.h
+++ b/cpukit/posix/include/rtems/posix/pthreadimpl.h
@@ -127,22 +127,6 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Initialize_attributes(
 );
 
 /**
- * @brief Check if a POSIX thread control block is NULL.
- *
- * This function returns @c TRUE if the_pthread is @c NULL and @c FALSE
- * otherwise.
- *
- * @param[in] the_pthread is a pointer to the POSIX thread control block
- * to check.
- *
- * @retval TRUE The thread control block is @c NULL.
- * @retval FALSE The thread control block is not @c NULL.
- */
-RTEMS_INLINE_ROUTINE bool _POSIX_Threads_Is_null(
-  Thread_Control *the_pthread
-);
-
-/**
  * @brief POSIX threads sporadic budget callout.
  *
  * This routine handles the sporadic scheduling algorithm.
diff --git a/cpukit/posix/include/rtems/posix/rwlockimpl.h b/cpukit/posix/include/rtems/posix/rwlockimpl.h
index 2d6002a..a62d776 100644
--- a/cpukit/posix/include/rtems/posix/rwlockimpl.h
+++ b/cpukit/posix/include/rtems/posix/rwlockimpl.h
@@ -115,25 +115,6 @@ RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Get (
   );
 }
 
-/**
- * @brief Check if a RWLock control block is NULL.
- *
- * This function returns @c TRUE if the_RWLock is @c NULL and @c FALSE
- * otherwise.
- * 
- * @param[in] the_RWLock is the pointer to the RWLock control block
- * to be checked.
- * 
- * @retval TRUE The RWLock control block is @c NULL.
- * @retval FALSE The RWLock control block is not @c NULL.
- */
-RTEMS_INLINE_ROUTINE bool _POSIX_RWLock_Is_null (
-  POSIX_RWLock_Control *the_RWLock
-)
-{
-  return ( the_RWLock == NULL );
-}
-
 #ifdef __cplusplus
 }
 #endif
diff --git a/cpukit/posix/include/rtems/posix/spinlockimpl.h b/cpukit/posix/include/rtems/posix/spinlockimpl.h
index 71a958d..8a2f583 100644
--- a/cpukit/posix/include/rtems/posix/spinlockimpl.h
+++ b/cpukit/posix/include/rtems/posix/spinlockimpl.h
@@ -106,25 +106,6 @@ RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get (
   );
 }
 
-/**
- * @brief Check if a spinlock control block is NULL.
- *
- * This function returns @c TRUE if the_spinlock is @c NULL and @c FALSE
- * otherwise.
- * 
- * @param[in] the_spinlock is the pointer to the spinlock control block
- * to be checked.
- * 
- * @retval TRUE The spinlock control block is @c NULL.
- * @retval FALSE The spinlock control block is not @c NULL.
- */
-RTEMS_INLINE_ROUTINE bool _POSIX_Spinlock_Is_null (
-  POSIX_Spinlock_Control *the_spinlock
-)
-{
-  return ( the_spinlock == NULL );
-}
-
 #ifdef __cplusplus
 }
 #endif
diff --git a/cpukit/posix/include/rtems/posix/timerimpl.h b/cpukit/posix/include/rtems/posix/timerimpl.h
index ff340d1..b297d32 100644
--- a/cpukit/posix/include/rtems/posix/timerimpl.h
+++ b/cpukit/posix/include/rtems/posix/timerimpl.h
@@ -123,18 +123,6 @@ RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Get (
     _Objects_Get( &_POSIX_Timer_Information, (Objects_Id) id, location );
 }
 
-/**
- *  @brief POSIX Timer Is NULL
- *
- *  This function returns TRUE if the_timer is NULL and FALSE otherwise.
- */
-RTEMS_INLINE_ROUTINE bool _POSIX_Timer_Is_null (
-  POSIX_Timer_Control *the_timer
-)
-{
-  return (the_timer == NULL);
-}
-
 #ifdef __cplusplus
 }
 #endif
diff --git a/cpukit/rtems/include/rtems/rtems/barrierimpl.h b/cpukit/rtems/include/rtems/rtems/barrierimpl.h
index 628a570..963ebd9 100644
--- a/cpukit/rtems/include/rtems/rtems/barrierimpl.h
+++ b/cpukit/rtems/include/rtems/rtems/barrierimpl.h
@@ -110,17 +110,6 @@ RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get (
 }
 
 /**
- *  @brief _Barrier_Is_null
- *
- *  This function returns TRUE if the_barrier is NULL and FALSE otherwise.
- */
-RTEMS_INLINE_ROUTINE bool _Barrier_Is_null (
-  Barrier_Control *the_barrier
-)
-{
-  return ( the_barrier == NULL );
-}
-/**
  * @brief Translate SuperCore Barrier Status Code to RTEMS Status Code
  *
  * This function returns a RTEMS status code based on the barrier
diff --git a/cpukit/rtems/include/rtems/rtems/dpmemimpl.h b/cpukit/rtems/include/rtems/rtems/dpmemimpl.h
index 717cf84..9fd2e6c 100644
--- a/cpukit/rtems/include/rtems/rtems/dpmemimpl.h
+++ b/cpukit/rtems/include/rtems/rtems/dpmemimpl.h
@@ -98,18 +98,6 @@ RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get (
      _Objects_Get( &_Dual_ported_memory_Information, id, location );
 }
 
-/**
- *  @brief Checks if the_port is NULL.
- *
- *  This function returns true if the_port is NULL and false otherwise.
- */
-RTEMS_INLINE_ROUTINE bool _Dual_ported_memory_Is_null(
-  Dual_ported_memory_Control *the_port
-)
-{
-  return ( the_port == NULL );
-}
-
 /**@}*/
 
 #ifdef __cplusplus
diff --git a/cpukit/rtems/include/rtems/rtems/messageimpl.h b/cpukit/rtems/include/rtems/rtems/messageimpl.h
index 714fb61..e2bc88d 100644
--- a/cpukit/rtems/include/rtems/rtems/messageimpl.h
+++ b/cpukit/rtems/include/rtems/rtems/messageimpl.h
@@ -104,20 +104,6 @@ rtems_status_code _Message_queue_Translate_core_message_queue_return_code (
 );
 
 /**
- *  @brief Check whether message queue is null.
- *
- *  This function places the_message at the rear of the outstanding
- *  messages on the_message_queue.
- */
-RTEMS_INLINE_ROUTINE bool _Message_queue_Is_null (
-  Message_queue_Control *the_message_queue
-)
-{
-  return ( the_message_queue == NULL  );
-}
-
-
-/**
  *  @brief Deallocates a message queue control block into
  *  the inactive chain of free message queue control blocks.
  *
diff --git a/cpukit/rtems/include/rtems/rtems/partimpl.h b/cpukit/rtems/include/rtems/rtems/partimpl.h
index 5992829..0f704d2 100644
--- a/cpukit/rtems/include/rtems/rtems/partimpl.h
+++ b/cpukit/rtems/include/rtems/rtems/partimpl.h
@@ -189,19 +189,6 @@ RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get (
     _Objects_Get( &_Partition_Information, id, location );
 }
 
-/**
- *  @brief Checks if the_partition is NULL.
- *
- *  This function returns TRUE if the_partition is NULL
- *  and FALSE otherwise.
- */
-RTEMS_INLINE_ROUTINE bool _Partition_Is_null (
-   Partition_Control *the_partition
-)
-{
-   return ( the_partition == NULL  );
-}
-
 /**@}*/
 
 #ifdef __cplusplus
diff --git a/cpukit/rtems/include/rtems/rtems/ratemonimpl.h b/cpukit/rtems/include/rtems/rtems/ratemonimpl.h
index 9dcec14..1489e57 100644
--- a/cpukit/rtems/include/rtems/rtems/ratemonimpl.h
+++ b/cpukit/rtems/include/rtems/rtems/ratemonimpl.h
@@ -146,18 +146,6 @@ RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_expired (
 }
 
 /**
- *  @brief Checks if the_period is NULL.
- *
- *  This function returns TRUE if the_period is NULL and FALSE otherwise.
- */
-RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_null (
-  Rate_monotonic_Control *the_period
-)
-{
-  return (the_period == NULL);
-}
-
-/**
  * @brief Rate Monotonic Timeout
  *
  * This routine is invoked when the period represented
diff --git a/cpukit/rtems/include/rtems/rtems/regionimpl.h b/cpukit/rtems/include/rtems/rtems/regionimpl.h
index 8dbfbd6..9ff7b96 100644
--- a/cpukit/rtems/include/rtems/rtems/regionimpl.h
+++ b/cpukit/rtems/include/rtems/rtems/regionimpl.h
@@ -134,18 +134,6 @@ RTEMS_INLINE_ROUTINE bool _Region_Free_segment (
 }
 
 /**
- *  @brief Region_Is_null
- *
- *  This function returns TRUE if the_region is NULL and FALSE otherwise.
- */
-RTEMS_INLINE_ROUTINE bool _Region_Is_null (
-  Region_Control *the_region
-)
-{
-  return ( the_region == NULL  );
-}
-
-/**
  *  @brief Process Region Queue
  *
  *  This is a helper routine which is invoked any time memory is
diff --git a/cpukit/rtems/include/rtems/rtems/timerimpl.h b/cpukit/rtems/include/rtems/rtems/timerimpl.h
index 4a4defe..667a86a 100644
--- a/cpukit/rtems/include/rtems/rtems/timerimpl.h
+++ b/cpukit/rtems/include/rtems/rtems/timerimpl.h
@@ -219,18 +219,6 @@ RTEMS_INLINE_ROUTINE bool _Timer_Is_dormant_class (
   return ( the_class == TIMER_DORMANT );
 }
 
-/**
- *  @brief Timer_Is_null
- *
- *  This function returns TRUE if the_timer is NULL and FALSE otherwise.
- */
-RTEMS_INLINE_ROUTINE bool _Timer_Is_null (
-  Timer_Control *the_timer
-)
-{
-  return ( the_timer == NULL );
-}
-
 /**@}*/
 
 #ifdef __cplusplus
diff --git a/cpukit/sapi/include/rtems/extensionimpl.h b/cpukit/sapi/include/rtems/extensionimpl.h
index 5b3964e..487bdb4 100644
--- a/cpukit/sapi/include/rtems/extensionimpl.h
+++ b/cpukit/sapi/include/rtems/extensionimpl.h
@@ -59,13 +59,6 @@ RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get (
     _Objects_Get( &_Extension_Information, id, location );
 }
 
-RTEMS_INLINE_ROUTINE bool _Extension_Is_null (
-  Extension_Control *the_extension
-)
-{
-  return ( the_extension == NULL );
-}
-
 #ifdef __cplusplus
 }
 #endif
diff --git a/cpukit/score/include/rtems/score/chainimpl.h b/cpukit/score/include/rtems/score/chainimpl.h
index 02196cb..6e1b6e3 100644
--- a/cpukit/score/include/rtems/score/chainimpl.h
+++ b/cpukit/score/include/rtems/score/chainimpl.h
@@ -272,23 +272,6 @@ RTEMS_INLINE_ROUTINE bool _Chain_Are_nodes_equal(
 }
 
 /**
- * @brief Is this chain control pointer NULL.
- *
- * This function returns true if the_chain is NULL and false otherwise.
- *
- * @param[in] the_chain is the chain to be checked for empty status.
- *
- * @retval true @a the_chain is @c NULL.
- * @retval false @a the_chain is not @c NULL.
- */
-RTEMS_INLINE_ROUTINE bool _Chain_Is_null(
-  const Chain_Control *the_chain
-)
-{
-  return (the_chain == NULL);
-}
-
-/**
  * @brief Is the chain node pointer NULL.
  *
  * This function returns true if the_node is NULL and false otherwise.
diff --git a/cpukit/score/include/rtems/score/coremsgimpl.h b/cpukit/score/include/rtems/score/coremsgimpl.h
index 3678b3c..6c1f901 100644
--- a/cpukit/score/include/rtems/score/coremsgimpl.h
+++ b/cpukit/score/include/rtems/score/coremsgimpl.h
@@ -530,16 +530,6 @@ RTEMS_INLINE_ROUTINE void _CORE_message_queue_Prepend_unprotected (
   );
 }
 
-/**
- * This function returns true if the_message_queue is true and false otherwise.
- */
-RTEMS_INLINE_ROUTINE bool _CORE_message_queue_Is_null (
-  CORE_message_queue_Control *the_message_queue
-)
-{
-  return ( the_message_queue == NULL  );
-}
-
 #if defined(RTEMS_SCORE_COREMSG_ENABLE_NOTIFICATION)
   /**
    * This function returns true if notification is enabled on this message
diff --git a/cpukit/score/include/rtems/score/rbtreeimpl.h b/cpukit/score/include/rtems/score/rbtreeimpl.h
index 4bc2155..f3af7fe 100644
--- a/cpukit/score/include/rtems/score/rbtreeimpl.h
+++ b/cpukit/score/include/rtems/score/rbtreeimpl.h
@@ -77,21 +77,6 @@ RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(
 }
 
 /**
- * @brief Is this RBTree control pointer NULL.
- *
- * This function returns true if @a the_rbtree is NULL and false otherwise.
- *
- * @retval true @a the_rbtree is @c NULL.
- * @retval false @a the_rbtree is not @c NULL.
- */
-RTEMS_INLINE_ROUTINE bool _RBTree_Is_null(
-    const RBTree_Control *the_rbtree
-    )
-{
-  return (the_rbtree == NULL);
-}
-
-/**
  * @brief Is this node red.
  *
  * This function returns true if @a the_node is red and false otherwise.



More information about the vc mailing list