mutable.py: remove unused 'download' method (we only have download_to_data for now)

This commit is contained in:
Brian Warner 2008-03-04 14:01:55 -07:00
parent e6489b1ef2
commit 72f139653b

View 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)