diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-07-12 14:22:21 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-07-15 10:03:48 -0500 |
commit | 7e119990382702a6d019d748b778180824ba46ee (patch) | |
tree | 01cb85f23e98ecece8add13d0d095177d43bbc5e /cpukit/score/include/rtems | |
parent | uart-output-char.h: extra offset definition. (diff) | |
download | rtems-7e119990382702a6d019d748b778180824ba46ee.tar.bz2 |
rbtree: Delete unused functions
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/include/rtems/score/rbtree.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/cpukit/score/include/rtems/score/rbtree.h b/cpukit/score/include/rtems/score/rbtree.h index fa522999fe..5a296b6853 100644 --- a/cpukit/score/include/rtems/score/rbtree.h +++ b/cpukit/score/include/rtems/score/rbtree.h @@ -290,38 +290,6 @@ RTEMS_INLINE_ROUTINE bool _RBTree_Is_node_off_rbtree( } /** - * @brief Are two Nodes equal. - * - * This function returns true if @a left and @a right are equal, - * and false otherwise. - * - * @retval true @a left and @a right are equal. - * @retval false @a left and @a right are not equal. - */ -RTEMS_INLINE_ROUTINE bool _RBTree_Are_nodes_equal( - const RBTree_Node *left, - const RBTree_Node *right - ) -{ - return left == right; -} - -/** - * @brief Is the RBTree node pointer NUL. - * - * This function returns true if @a the_node is NULL and false otherwise. - * - * @retval true @a the_node is @c NULL. - * @retval false @a the_node is not @c NULL. - */ -RTEMS_INLINE_ROUTINE bool _RBTree_Is_null_node( - const RBTree_Node *the_node - ) -{ - return (the_node == NULL); -} - -/** * @brief Return pointer to RBTree's root node. * * This function returns a pointer to the root node of @a the_rbtree. @@ -431,24 +399,6 @@ RTEMS_INLINE_ROUTINE bool _RBTree_Is_first( } /** - * @brief Does this RBTree have only one node. - * - * This function returns true if there is only one node on @a the_rbtree and - * false otherwise. - * - * @retval true @a the_rbtree has only one node. - * @retval false @a the_rbtree has more than one nodes. - */ -RTEMS_INLINE_ROUTINE bool _RBTree_Has_only_one_node( - const RBTree_Control *the_rbtree - ) -{ - if(!the_rbtree) return false; /* TODO: expected behavior? */ - return (the_rbtree->root->child[RBT_LEFT] == NULL && - the_rbtree->root->child[RBT_RIGHT] == NULL); -} - -/** * @brief Is this node the RBTree root. * * This function returns true if @a the_node is the root of @a the_rbtree and |