From: simon Date: Thu, 3 May 2012 18:12:32 +0000 (+0000) Subject: Remove an unused variable spotted by Ubuntu 12.04's gcc. X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/library/commitdiff_plain/8b7c6760f9719e644e4e08a96711abb13dc8102f Remove an unused variable spotted by Ubuntu 12.04's gcc. git-svn-id: svn://svn.tartarus.org/sgt/library@9488 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/btree.c b/btree.c index bb6f907..7ad6bf3 100644 --- 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) {