Commit 4ddc5ba8 authored by Tim Peters's avatar Tim Peters

nextBTreeItems(): This was copying the value (from the next (key, value)

pair) from the bucket into the set-iteration struct twice.  I don't
believe this had any visible effect, it was simply pointless and wasted
a little time (discovered by eyeball).
parent 2e772892
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
****************************************************************************/ ****************************************************************************/
#define BTREEITEMSTEMPLATE_C "$Id: BTreeItemsTemplate.c,v 1.18 2003/01/31 20:13:02 tim_one Exp $\n" #define BTREEITEMSTEMPLATE_C "$Id: BTreeItemsTemplate.c,v 1.19 2003/03/16 21:42:29 tim_one Exp $\n"
/* A BTreeItems struct is returned from calling .items(), .keys() or /* A BTreeItems struct is returned from calling .items(), .keys() or
* .values() on a BTree-based data structure, and is also the result of * .values() on a BTree-based data structure, and is also the result of
...@@ -496,9 +496,6 @@ nextBTreeItems(SetIteration *i) ...@@ -496,9 +496,6 @@ nextBTreeItems(SetIteration *i)
COPY_VALUE(i->value, COPY_VALUE(i->value,
currentbucket->values[ITEMS(i->set)->currentoffset]); currentbucket->values[ITEMS(i->set)->currentoffset]);
COPY_VALUE(i->value,
BUCKET(ITEMS(i->set)->currentbucket)
->values[ITEMS(i->set)->currentoffset]);
INCREF_VALUE(i->value); INCREF_VALUE(i->value);
i->position ++; i->position ++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment