[Zope-Checkins] CVS: Zope3/lib/python/Persistence/BTrees - BucketTemplate.c:1.12
Tim Peters
tim.one@comcast.net
Thu, 20 Jun 2002 11:03:02 -0400
Update of /cvs-repository/Zope3/lib/python/Persistence/BTrees
In directory cvs.zope.org:/tmp/cvs-serv339
Modified Files:
BucketTemplate.c
Log Message:
Bucket_nextBucket(): Removed, as it's no longer used.
=== Zope3/lib/python/Persistence/BTrees/BucketTemplate.c 1.11 => 1.12 ===
}
-/* Bucket_nextBucket() has an unusual signature because it must
- return a pointer to a bucket that can be NULL without being an
- error. An error occurs if the persistent object can't be loaded.
- To signal the error and return the bucket, it uses a Bucket **.
-*/
-
-static int
-Bucket_nextBucket(Bucket *self, Bucket **r)
-{
- PyPersist_INCREF(self);
- if (!PyPersist_IS_STICKY(self))
- return -1;
- *r = self->next;
- Py_XINCREF(*r);
- PyPersist_DECREF(self);
- PyPersist_SetATime(self);
- return 0;
-}
-
/* Set self->next to self->next->next, i.e. unlink self's successor from
* the chain.
*