Commit 4fe18710 authored by Jeremy Hylton's avatar Jeremy Hylton

Remove unused variable declarations

parent 394e0113
......@@ -83,7 +83,7 @@
****************************************************************************/
#define BTREETEMPLATE_C "$Id: BTreeTemplate.c,v 1.14 2001/03/30 20:42:22 jim Exp $\n"
#define BTREETEMPLATE_C "$Id: BTreeTemplate.c,v 1.15 2001/04/02 16:57:40 jeremy Exp $\n"
/*
** _BTree_get
......@@ -728,9 +728,9 @@ err:
static int
_BTree_setstate(BTree *self, PyObject *state, int noval)
{
PyObject *items, *o, *firstbucket=0;
PyObject *items, *firstbucket=0;
BTreeItem *d;
int len, l, i, r, copied=1;
int len, l, i, copied=1;
if (_BTree_clear(self) < 0) return -1;
......@@ -1118,7 +1118,7 @@ BTree_byValue(BTree *self, PyObject *args)
PyObject *r=0, *o=0, *item=0, *omin;
VALUE_TYPE min;
VALUE_TYPE v;
int i, l, copied=1;
int copied=1;
SetIteration it={0,0};
PER_USE_OR_RETURN(self, NULL);
......
......@@ -82,7 +82,7 @@
****************************************************************************/
#define BUCKETTEMPLATE_C "$Id: BucketTemplate.c,v 1.12 2001/03/30 20:42:22 jim Exp $\n"
#define BUCKETTEMPLATE_C "$Id: BucketTemplate.c,v 1.13 2001/04/02 16:57:40 jeremy Exp $\n"
/*
** _bucket_get
......@@ -336,7 +336,7 @@ static PyObject *
Mapping_update(PyObject *self, PyObject *args)
{
PyObject *seq=0, *o, *t, *v, *tb, *k;
int i, n=0, ind;
int i, ind;
UNLESS(PyArg_ParseTuple(args, "|O:update", &seq)) return NULL;
......@@ -483,8 +483,6 @@ static int
Bucket_findRangeEnd(Bucket *self, PyObject *keyarg, int low, int *offset)
{
int min, max, i, l, cmp, copied=1;
Bucket *chase;
Bucket *release = NULL;
KEY_TYPE key;
COPY_KEY_FROM_ARG(key, keyarg, copied);
......@@ -872,8 +870,6 @@ bucket__p_deactivate(Bucket *self, PyObject *args)
static PyObject *
bucket_clear(Bucket *self, PyObject *args)
{
int i;
PER_USE_OR_RETURN(self, NULL);
if (self->len)
......@@ -951,7 +947,7 @@ err:
static int
_bucket_setstate(Bucket *self, PyObject *args)
{
PyObject *k, *v, *r, *items;
PyObject *k, *v, *items;
Bucket *next=0;
int i, l, len, copied=1;
KEY_TYPE *keys;
......@@ -1175,8 +1171,6 @@ static struct PyMethodDef Bucket_methods[] = {
static void
Bucket_dealloc(Bucket *self)
{
int i;
_bucket_clear(self);
PER_DEL(self);
......
......@@ -83,7 +83,7 @@
****************************************************************************/
#define MERGETEMPLATE_C "$Id: MergeTemplate.c,v 1.3 2001/03/20 13:52:00 jim Exp $\n"
#define MERGETEMPLATE_C "$Id: MergeTemplate.c,v 1.4 2001/04/02 16:57:40 jeremy Exp $\n"
/****************************************************************************
Set operations
......@@ -121,7 +121,7 @@ bucket_merge(Bucket *s1, Bucket *s2, Bucket *s3)
{
Bucket *r=0;
PyObject *s;
SetIteration i1 = {0,0,0}, i2 = {0,0,0}, i3 = {0,0,0}, it;
SetIteration i1 = {0,0,0}, i2 = {0,0,0}, i3 = {0,0,0};
int cmp12, cmp13, cmp23, mapping=0, set;
if (initSetIteration(&i1, OBJECT(s1), 0, &mapping) < 0) return NULL;
......
......@@ -83,7 +83,7 @@
****************************************************************************/
#define SETTEMPLATE_C "$Id: SetTemplate.c,v 1.10 2001/03/21 14:16:58 jim Exp $\n"
#define SETTEMPLATE_C "$Id: SetTemplate.c,v 1.11 2001/04/02 16:57:40 jeremy Exp $\n"
static PyObject *
Set_insert(Bucket *self, PyObject *args)
......@@ -150,7 +150,6 @@ _set_setstate(Bucket *self, PyObject *args)
Bucket *next=0;
int i, l, copied=1;
KEY_TYPE *keys;
VALUE_TYPE *values;
UNLESS (PyArg_ParseTuple(args, "O|O", &items, &next))
return -1;
......
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