From: Willy Tarreau Date: Sun, 29 Apr 2007 11:37:23 +0000 (+0200) Subject: [MINOR] removed useless counters from ul2tree_insert() X-Git-Tag: v1.3.10~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fa095d54232caaaa98627e61db32f71eaba82ce;p=thirdparty%2Fhaproxy.git [MINOR] removed useless counters from ul2tree_insert() node_right_lookup and node_right_lookup were two statistical counters. Let's remove them as we do not need them. --- diff --git a/include/import/tree.h b/include/import/tree.h index 0ae6fb4739..7c375e7ab3 100644 --- a/include/import/tree.h +++ b/include/import/tree.h @@ -54,8 +54,6 @@ struct tree64 { #define sizeof_tree64 (sizeof (struct tree64)) extern void **pool_tree64; -static int node_right_lookup, node_lookup; - #define ULTREE_HEAD(l) struct ultree (l) = { .left=NULL, .right=NULL, .up=NULL, .low=0, .level=LONGBITS, .data=NULL } #define ULTREE_INIT(l) { (l)->data = (l)->left = (l)->right = NULL; } #define ULTREE_INIT_ROOT(l) { (l)->left=(l)->right=(l)->up=(l)->data=NULL; (l)->low=0; (l)->level=LONGBITS; } @@ -270,18 +268,15 @@ inline static struct ultree *__ul2tree_insert(struct ultree *root, unsigned long if (next->level >= 33) { if ((h >> (next->level - 33)) & 1) { /* right branch */ branch = &next->right; - node_right_lookup++; } } else { if ((l >> (next->level - 1)) & 1) { /* right branch */ branch = &next->right; - node_right_lookup++; } } next = *branch; - node_lookup++; if (next == NULL) { /* we'll have to insert our node here */ *branch = new =(struct ultree *)pool_alloc(tree64);