Remove an unused variable spotted by Ubuntu 12.04's gcc. master
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 3 May 2012 18:12:32 +0000 (18:12 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 3 May 2012 18:12:32 +0000 (18:12 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/library@9488 cda61777-01e9-0310-a592-d414129be87e

btree.c

diff --git a/btree.c b/btree.c
index bb6f907..7ad6bf3 100644 (file)
--- a/btree.c
+++ b/btree.c
@@ -989,7 +989,6 @@ bt_element_t bt_findrelpos(btree *bt, bt_element_t element, cmpfn_t cmp,
     int child, is_elt;
     bt_element_t gotit;
     int pos = 0;
-    int count;
 
     if (!cmp) cmp = bt->cmp;
 
@@ -1011,7 +1010,6 @@ bt_element_t bt_findrelpos(btree *bt, bt_element_t element, cmpfn_t cmp,
     n = bt_read_lock_root(bt);
     if (!n)
        return NULL;
-    count = bt_node_count(bt, n);
     while (n) {
        child = bt_lookup_cmp(bt, n, element, cmp, &is_elt);
        if (is_elt) {