From 4cd55724bbc6c125be4669ea4343e93cb7108d3b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 26 Jul 2014 12:52:22 +0200 Subject: 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, 262 deletions(-) diff --git a/cpukit/posix/include/rtems/posix/barrierimpl.h b/cpukit/posix/include/rtems/posix/barrierimpl.h index af220b9b19..240abad45d 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 66f4f63ba2..435127ee3c 100644 --- a/cpukit/posix/include/rtems/posix/condimpl.h +++ b/cpukit/posix/include/rtems/posix/condimpl.h @@ -94,20 +94,6 @@ POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get ( Objects_Locations *location ); -/** - * @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. * diff --git a/cpukit/posix/include/rtems/posix/mqueueimpl.h b/cpukit/posix/include/rtems/posix/mqueueimpl.h index a72a9e8d17..bfc850d990 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 05c80ceee0..e5955a6fdd 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 af5ddab6ce..bf2d68ec9d 100644 --- a/cpukit/posix/include/rtems/posix/pthreadimpl.h +++ b/cpukit/posix/include/rtems/posix/pthreadimpl.h @@ -126,22 +126,6 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Initialize_attributes( pthread_attr_t *attr ); -/** - * @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. * diff --git a/cpukit/posix/include/rtems/posix/rwlockimpl.h b/cpukit/posix/include/rtems/posix/rwlockimpl.h index 2d6002ac7f..a62d77638e 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 71a958dab6..8a2f58360d 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 ff340d1f20..b297d3205a 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 628a570e33..963ebd93da 100644 --- a/cpukit/rtems/include/rtems/rtems/barrierimpl.h +++ b/cpukit/rtems/include/rtems/rtems/barrierimpl.h @@ -109,17 +109,6 @@ RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( _Objects_Get( &_Barrier_Information, id, location ); } -/** - * @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 * diff --git a/cpukit/rtems/include/rtems/rtems/dpmemimpl.h b/cpukit/rtems/include/rtems/rtems/dpmemimpl.h index 717cf84de1..9fd2e6c1ed 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 714fb617dc..e2bc88d0db 100644 --- a/cpukit/rtems/include/rtems/rtems/messageimpl.h +++ b/cpukit/rtems/include/rtems/rtems/messageimpl.h @@ -103,20 +103,6 @@ rtems_status_code _Message_queue_Translate_core_message_queue_return_code ( uint32_t the_message_queue_status ); -/** - * @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 5992829067..0f704d2be6 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 9dcec141c6..1489e57e06 100644 --- a/cpukit/rtems/include/rtems/rtems/ratemonimpl.h +++ b/cpukit/rtems/include/rtems/rtems/ratemonimpl.h @@ -145,18 +145,6 @@ RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_expired ( return (the_period->state == RATE_MONOTONIC_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 * diff --git a/cpukit/rtems/include/rtems/rtems/regionimpl.h b/cpukit/rtems/include/rtems/rtems/regionimpl.h index 8dbfbd6056..9ff7b966ca 100644 --- a/cpukit/rtems/include/rtems/rtems/regionimpl.h +++ b/cpukit/rtems/include/rtems/rtems/regionimpl.h @@ -133,18 +133,6 @@ RTEMS_INLINE_ROUTINE bool _Region_Free_segment ( return _Heap_Free( &the_region->Memory, the_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 * diff --git a/cpukit/rtems/include/rtems/rtems/timerimpl.h b/cpukit/rtems/include/rtems/rtems/timerimpl.h index 4a4defe47d..667a86a686 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 5b3964eab0..487bdb4024 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 02196cbfc1..6e1b6e3ce5 100644 --- a/cpukit/score/include/rtems/score/chainimpl.h +++ b/cpukit/score/include/rtems/score/chainimpl.h @@ -271,23 +271,6 @@ RTEMS_INLINE_ROUTINE bool _Chain_Are_nodes_equal( return left == right; } -/** - * @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. * diff --git a/cpukit/score/include/rtems/score/coremsgimpl.h b/cpukit/score/include/rtems/score/coremsgimpl.h index 3678b3c420..6c1f901eed 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 4bc2155a4d..f3af7fe6ec 100644 --- a/cpukit/score/include/rtems/score/rbtreeimpl.h +++ b/cpukit/score/include/rtems/score/rbtreeimpl.h @@ -76,21 +76,6 @@ RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction( return (RBTree_Direction) !((int) the_dir); } -/** - * @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. * -- cgit v1.2.3