]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
remove a couple of unused methods of buckets
authorZooko O'Whielacronx <zooko@zooko.com>
Mon, 4 Dec 2006 09:14:01 +0000 (02:14 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Mon, 4 Dec 2006 09:14:01 +0000 (02:14 -0700)
allmydata/bucketstore.py
allmydata/interfaces.py
allmydata/test/test_upload.py

index 773391bd24ed6dc60139b95fc04044f5fa17c6ae..e3e1b6752907484d47b69de7747b137913358d74 100644 (file)
@@ -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')
index 07f36e282b7ff0b1be89decfcb3cc2914aa4ff75..f7e86b76a840f053150f6d81383ed1eaef7d1496 100644 (file)
@@ -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
 
index a97dfe12c84c0f470d965ae9c4e2633801f58e4f..9d3e44c8524bebd2e25da9c8b04b8f8a8ea0993f 100644 (file)
@@ -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