Changeset 297

Show
Ignore:
Timestamp:
11/09/99 18:34:41 (15 years ago)
Author:
ucacoxh
Message:

- Removed btree_get_element_count. Superfluous.

Location:
common/trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • common/trunk/src/btree.c

    r296 r297  
    2828struct s_btree { 
    2929        btree_node_t   *root; 
    30         int             cnt; 
    3130}; 
    3231 
     
    161160        if (t) { 
    162161                t->root = NULL; 
    163                 t->cnt  = 0; 
    164162                *tree = t; 
    165163                return TRUE; 
     
    211209        x->parent = x->left = x->right = NULL; 
    212210        btree_insert_node(tree, x); 
    213         tree->cnt++; 
    214211 
    215212        return TRUE; 
     
    238235        x = btree_delete_node(tree, x); 
    239236        xfree(x); 
    240         tree->cnt--; 
    241237 
    242238        return TRUE; 
     
    296292        *next_key = x->key; 
    297293        return TRUE; 
    298 } 
    299  
    300 int  
    301 btree_get_element_count(btree_t *tree) 
    302 { 
    303         return tree->cnt; 
    304294} 
    305295 
  • common/trunk/src/btree.h

    r296 r297  
    6060int btree_get_next_key (btree_t *tree, u_int32 cur_key, u_int32 *next_key); 
    6161 
    62 /* btree_get_element_count returns numver of nodes on tree                   */ 
    63 int btree_get_element_count(btree_t *tree); 
    64  
    6562#endif /* __BTREE_H__ */ 
    6663