From: Zooko O'Whielacronx Date: Mon, 4 Dec 2006 09:14:01 +0000 (-0700) Subject: remove a couple of unused methods of buckets X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~467 X-Git-Url: https://git.rkrishnan.org/pf/content/en/statistics?a=commitdiff_plain;h=b0abe5122deca6bb521ce71a875ccc40891650bb;p=tahoe-lafs%2Ftahoe-lafs.git remove a couple of unused methods of buckets --- 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