From b0abe5122deca6bb521ce71a875ccc40891650bb Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Mon, 4 Dec 2006 02:14:01 -0700 Subject: [PATCH] remove a couple of unused methods of buckets --- allmydata/bucketstore.py | 1 - allmydata/interfaces.py | 6 ------ allmydata/test/test_upload.py | 4 ---- 3 files changed, 11 deletions(-) diff --git a/allmydata/bucketstore.py b/allmydata/bucketstore.py index 773391bd..e3e1b675 100644 --- a/allmydata/bucketstore.py +++ b/allmydata/bucketstore.py @@ -128,7 +128,6 @@ class ReadBucket(Bucket, Referenceable): def get_bucket_num(self): return int(self._read_attr('bucket_num')) - remote_get_bucket_num = get_bucket_num def read(self): return self._read_attr('data') diff --git a/allmydata/interfaces.py b/allmydata/interfaces.py index 07f36e28..f7e86b76 100644 --- a/allmydata/interfaces.py +++ b/allmydata/interfaces.py @@ -39,17 +39,11 @@ class RIBucketWriter(RemoteInterface): def write(data=ShareData): return Nothing() - def set_size(size=int): - return Nothing() - def close(): return Nothing() class RIBucketReader(RemoteInterface): - def get_bucket_num(): - return int - def read(): return ShareData diff --git a/allmydata/test/test_upload.py b/allmydata/test/test_upload.py index a97dfe12..9d3e44c8 100644 --- a/allmydata/test/test_upload.py +++ b/allmydata/test/test_upload.py @@ -16,8 +16,6 @@ class StringBucketProxy: def callRemote(self, methname, **kwargs): if methname == "write": return defer.maybeDeferred(self.write, **kwargs) - elif methname == "set_size": - return defer.maybeDeferred(self.set_size, **kwargs) elif methname == "close": return defer.maybeDeferred(self.close, **kwargs) else: @@ -25,8 +23,6 @@ class StringBucketProxy: def write(self, data): self.data.write(data) - def set_size(self, size): - self.size = size def close(self): self.done = True -- 2.45.2