mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 23:02:25 +00:00
mutable.py: remove unused 'download' method (we only have download_to_data for now)
This commit is contained in:
parent
e6489b1ef2
commit
72f139653b
@ -1595,17 +1595,6 @@ class MutableFileNode:
|
|||||||
verifier = self.get_verifier()
|
verifier = self.get_verifier()
|
||||||
return self._client.getServiceNamed("checker").check(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):
|
def download_to_data(self):
|
||||||
r = self.retrieve_class(self)
|
r = self.retrieve_class(self)
|
||||||
self._client.notify_retrieve(r)
|
self._client.notify_retrieve(r)
|
||||||
|
Loading…
Reference in New Issue
Block a user