From: Brian Warner Date: Tue, 4 Mar 2008 21:01:55 +0000 (-0700) Subject: mutable.py: remove unused 'download' method (we only have download_to_data for now) X-Git-Tag: allmydata-tahoe-0.9.0~74 X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/uri/frontends/FTP-and-SFTP.rst?a=commitdiff_plain;h=72f139653bdfffc2ed62260adab2c1e6b3593e67;p=tahoe-lafs%2Ftahoe-lafs.git mutable.py: remove unused 'download' method (we only have download_to_data for now) --- diff --git a/src/allmydata/mutable.py b/src/allmydata/mutable.py index 925a286a..713c5bf7 100644 --- a/src/allmydata/mutable.py +++ b/src/allmydata/mutable.py @@ -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)