]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
mutable.py: remove unused 'download' method (we only have download_to_data for now)
authorBrian Warner <warner@allmydata.com>
Tue, 4 Mar 2008 21:01:55 +0000 (14:01 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 4 Mar 2008 21:01:55 +0000 (14:01 -0700)
src/allmydata/mutable.py

index 925a286a64051daf013bfab684e77cbdbee94fc1..713c5bf71ba3e4d9367571b2a5dd3351fbb45565 100644 (file)
@@ -1595,17 +1595,6 @@ class MutableFileNode:
         verifier = self.get_verifier()
         return self._client.getServiceNamed("checker").check(verifier)
 
-    def download(self, target):
-        # fake it. TODO: make this cleaner.
-        d = self.download_to_data()
-        def _done(data):
-            target.open(len(data))
-            target.write(data)
-            target.close()
-            return target.finish()
-        d.addCallback(_done)
-        return d
-
     def download_to_data(self):
         r = self.retrieve_class(self)
         self._client.notify_retrieve(r)