projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6489b1
)
mutable.py: remove unused 'download' method (we only have download_to_data for now)
author
Brian Warner
<warner@allmydata.com>
Tue, 4 Mar 2008 21:01:55 +0000
(14:01 -0700)
committer
Brian Warner
<warner@allmydata.com>
Tue, 4 Mar 2008 21:01:55 +0000
(14:01 -0700)
src/allmydata/mutable.py
patch
|
blob
|
history
diff --git
a/src/allmydata/mutable.py
b/src/allmydata/mutable.py
index 925a286a64051daf013bfab684e77cbdbee94fc1..713c5bf71ba3e4d9367571b2a5dd3351fbb45565 100644
(file)
--- 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)