From 72f139653bdfffc2ed62260adab2c1e6b3593e67 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Tue, 4 Mar 2008 14:01:55 -0700
Subject: [PATCH] mutable.py: remove unused 'download' method (we only have
 download_to_data for now)

---
 src/allmydata/mutable.py | 11 -----------
 1 file changed, 11 deletions(-)

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