Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
fe83d4b6
Commit
fe83d4b6
authored
Apr 02, 2001
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused variable declarations
parent
46c7ba62
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
17 deletions
+10
-17
trunk/src/BTrees/BTreeTemplate.c
trunk/src/BTrees/BTreeTemplate.c
+4
-4
trunk/src/BTrees/BucketTemplate.c
trunk/src/BTrees/BucketTemplate.c
+3
-9
trunk/src/BTrees/MergeTemplate.c
trunk/src/BTrees/MergeTemplate.c
+2
-2
trunk/src/BTrees/SetTemplate.c
trunk/src/BTrees/SetTemplate.c
+1
-2
No files found.
trunk/src/BTrees/BTreeTemplate.c
View file @
fe83d4b6
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
****************************************************************************/
****************************************************************************/
#define BTREETEMPLATE_C "$Id: BTreeTemplate.c,v 1.1
4 2001/03/30 20:42:22 jim
Exp $\n"
#define BTREETEMPLATE_C "$Id: BTreeTemplate.c,v 1.1
5 2001/04/02 16:57:40 jeremy
Exp $\n"
/*
/*
** _BTree_get
** _BTree_get
...
@@ -728,9 +728,9 @@ err:
...
@@ -728,9 +728,9 @@ err:
static
int
static
int
_BTree_setstate
(
BTree
*
self
,
PyObject
*
state
,
int
noval
)
_BTree_setstate
(
BTree
*
self
,
PyObject
*
state
,
int
noval
)
{
{
PyObject
*
items
,
*
o
,
*
firstbucket
=
0
;
PyObject
*
items
,
*
firstbucket
=
0
;
BTreeItem
*
d
;
BTreeItem
*
d
;
int
len
,
l
,
i
,
r
,
copied
=
1
;
int
len
,
l
,
i
,
copied
=
1
;
if
(
_BTree_clear
(
self
)
<
0
)
return
-
1
;
if
(
_BTree_clear
(
self
)
<
0
)
return
-
1
;
...
@@ -1118,7 +1118,7 @@ BTree_byValue(BTree *self, PyObject *args)
...
@@ -1118,7 +1118,7 @@ BTree_byValue(BTree *self, PyObject *args)
PyObject
*
r
=
0
,
*
o
=
0
,
*
item
=
0
,
*
omin
;
PyObject
*
r
=
0
,
*
o
=
0
,
*
item
=
0
,
*
omin
;
VALUE_TYPE
min
;
VALUE_TYPE
min
;
VALUE_TYPE
v
;
VALUE_TYPE
v
;
int
i
,
l
,
copied
=
1
;
int
copied
=
1
;
SetIteration
it
=
{
0
,
0
};
SetIteration
it
=
{
0
,
0
};
PER_USE_OR_RETURN
(
self
,
NULL
);
PER_USE_OR_RETURN
(
self
,
NULL
);
...
...
trunk/src/BTrees/BucketTemplate.c
View file @
fe83d4b6
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
****************************************************************************/
****************************************************************************/
#define BUCKETTEMPLATE_C "$Id: BucketTemplate.c,v 1.1
2 2001/03/30 20:42:22 jim
Exp $\n"
#define BUCKETTEMPLATE_C "$Id: BucketTemplate.c,v 1.1
3 2001/04/02 16:57:40 jeremy
Exp $\n"
/*
/*
** _bucket_get
** _bucket_get
...
@@ -336,7 +336,7 @@ static PyObject *
...
@@ -336,7 +336,7 @@ static PyObject *
Mapping_update
(
PyObject
*
self
,
PyObject
*
args
)
Mapping_update
(
PyObject
*
self
,
PyObject
*
args
)
{
{
PyObject
*
seq
=
0
,
*
o
,
*
t
,
*
v
,
*
tb
,
*
k
;
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
;
UNLESS
(
PyArg_ParseTuple
(
args
,
"|O:update"
,
&
seq
))
return
NULL
;
...
@@ -483,8 +483,6 @@ static int
...
@@ -483,8 +483,6 @@ static int
Bucket_findRangeEnd
(
Bucket
*
self
,
PyObject
*
keyarg
,
int
low
,
int
*
offset
)
Bucket_findRangeEnd
(
Bucket
*
self
,
PyObject
*
keyarg
,
int
low
,
int
*
offset
)
{
{
int
min
,
max
,
i
,
l
,
cmp
,
copied
=
1
;
int
min
,
max
,
i
,
l
,
cmp
,
copied
=
1
;
Bucket
*
chase
;
Bucket
*
release
=
NULL
;
KEY_TYPE
key
;
KEY_TYPE
key
;
COPY_KEY_FROM_ARG
(
key
,
keyarg
,
copied
);
COPY_KEY_FROM_ARG
(
key
,
keyarg
,
copied
);
...
@@ -872,8 +870,6 @@ bucket__p_deactivate(Bucket *self, PyObject *args)
...
@@ -872,8 +870,6 @@ bucket__p_deactivate(Bucket *self, PyObject *args)
static
PyObject
*
static
PyObject
*
bucket_clear
(
Bucket
*
self
,
PyObject
*
args
)
bucket_clear
(
Bucket
*
self
,
PyObject
*
args
)
{
{
int
i
;
PER_USE_OR_RETURN
(
self
,
NULL
);
PER_USE_OR_RETURN
(
self
,
NULL
);
if
(
self
->
len
)
if
(
self
->
len
)
...
@@ -951,7 +947,7 @@ err:
...
@@ -951,7 +947,7 @@ err:
static
int
static
int
_bucket_setstate
(
Bucket
*
self
,
PyObject
*
args
)
_bucket_setstate
(
Bucket
*
self
,
PyObject
*
args
)
{
{
PyObject
*
k
,
*
v
,
*
r
,
*
items
;
PyObject
*
k
,
*
v
,
*
items
;
Bucket
*
next
=
0
;
Bucket
*
next
=
0
;
int
i
,
l
,
len
,
copied
=
1
;
int
i
,
l
,
len
,
copied
=
1
;
KEY_TYPE
*
keys
;
KEY_TYPE
*
keys
;
...
@@ -1175,8 +1171,6 @@ static struct PyMethodDef Bucket_methods[] = {
...
@@ -1175,8 +1171,6 @@ static struct PyMethodDef Bucket_methods[] = {
static
void
static
void
Bucket_dealloc
(
Bucket
*
self
)
Bucket_dealloc
(
Bucket
*
self
)
{
{
int
i
;
_bucket_clear
(
self
);
_bucket_clear
(
self
);
PER_DEL
(
self
);
PER_DEL
(
self
);
...
...
trunk/src/BTrees/MergeTemplate.c
View file @
fe83d4b6
...
@@ -83,7 +83,7 @@
...
@@ -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
Set operations
...
@@ -121,7 +121,7 @@ bucket_merge(Bucket *s1, Bucket *s2, Bucket *s3)
...
@@ -121,7 +121,7 @@ bucket_merge(Bucket *s1, Bucket *s2, Bucket *s3)
{
{
Bucket
*
r
=
0
;
Bucket
*
r
=
0
;
PyObject
*
s
;
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
;
int
cmp12
,
cmp13
,
cmp23
,
mapping
=
0
,
set
;
if
(
initSetIteration
(
&
i1
,
OBJECT
(
s1
),
0
,
&
mapping
)
<
0
)
return
NULL
;
if
(
initSetIteration
(
&
i1
,
OBJECT
(
s1
),
0
,
&
mapping
)
<
0
)
return
NULL
;
...
...
trunk/src/BTrees/SetTemplate.c
View file @
fe83d4b6
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
****************************************************************************/
****************************************************************************/
#define SETTEMPLATE_C "$Id: SetTemplate.c,v 1.1
0 2001/03/21 14:16:58 jim
Exp $\n"
#define SETTEMPLATE_C "$Id: SetTemplate.c,v 1.1
1 2001/04/02 16:57:40 jeremy
Exp $\n"
static
PyObject
*
static
PyObject
*
Set_insert
(
Bucket
*
self
,
PyObject
*
args
)
Set_insert
(
Bucket
*
self
,
PyObject
*
args
)
...
@@ -150,7 +150,6 @@ _set_setstate(Bucket *self, PyObject *args)
...
@@ -150,7 +150,6 @@ _set_setstate(Bucket *self, PyObject *args)
Bucket
*
next
=
0
;
Bucket
*
next
=
0
;
int
i
,
l
,
copied
=
1
;
int
i
,
l
,
copied
=
1
;
KEY_TYPE
*
keys
;
KEY_TYPE
*
keys
;
VALUE_TYPE
*
values
;
UNLESS
(
PyArg_ParseTuple
(
args
,
"O|O"
,
&
items
,
&
next
))
UNLESS
(
PyArg_ParseTuple
(
args
,
"O|O"
,
&
items
,
&
next
))
return
-
1
;
return
-
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment