From e2fe881a87331e7e20dab95126a8860e42cdddf0 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 27 Sep 2017 14:37:07 +0200 Subject: score: Simplify red-black tree debug support Make the RBTree_Node layout independent of RTEMS_DEBUG (and all other build configuration options). This allows the use of this structure in Newlib. Update #3112. --- cpukit/score/include/rtems/score/rbtree.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'cpukit/score/include/rtems') diff --git a/cpukit/score/include/rtems/score/rbtree.h b/cpukit/score/include/rtems/score/rbtree.h index 371fe9f5f8..15a3bc8913 100644 --- a/cpukit/score/include/rtems/score/rbtree.h +++ b/cpukit/score/include/rtems/score/rbtree.h @@ -49,9 +49,6 @@ struct RBTree_Control; */ typedef struct RBTree_Node { RB_ENTRY(RBTree_Node) Node; -#if defined(RTEMS_DEBUG) - const struct RBTree_Control *tree; -#endif } RBTree_Node; /** @@ -129,7 +126,6 @@ RTEMS_INLINE_ROUTINE void _RBTree_Initialize_node( RBTree_Node *the_node ) { #if defined(RTEMS_DEBUG) _RBTree_Set_off_tree( the_node ); - the_node->tree = NULL; #else (void) the_node; #endif @@ -408,10 +404,6 @@ RTEMS_INLINE_ROUTINE void _RBTree_Initialize_one( ) { _Assert( _RBTree_Is_node_off_tree( the_node ) ); -#if defined(RTEMS_DEBUG) - _Assert( the_node->tree == NULL ); - the_node->tree = the_rbtree; -#endif RB_ROOT( the_rbtree ) = the_node; RB_PARENT( the_node, Node ) = NULL; RB_LEFT( the_node, Node ) = NULL; -- cgit v1.2.3