]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
storage: remove unused delete_bucket() method, lease-cancellation covers it
authorBrian Warner <warner@lothar.com>
Sun, 2 Sep 2007 22:00:29 +0000 (15:00 -0700)
committerBrian Warner <warner@lothar.com>
Sun, 2 Sep 2007 22:00:29 +0000 (15:00 -0700)
src/allmydata/storage.py

index 480867cb3b92ceb5954109b53fa52e2d5a1438cd..5132fd4c2d1696e4daa366ec6b90a37a3cac9af9 100644 (file)
@@ -332,14 +332,6 @@ class StorageServer(service.MultiService, Referenceable):
         if not found_buckets:
             raise IndexError("no such lease to cancel")
 
-    def delete_bucket(self, storage_index):
-        storagedir = os.path.join(self.sharedir, idlib.b2a(storage_index))
-        # measure the usage of this directory, to remove it from our current
-        # total
-        consumed = fileutil.du(storagedir)
-        fileutil.rm_dir(storagedir)
-        self.consumed -= consumed
-
     def bucket_writer_closed(self, bw, consumed_size):
         self.consumed += consumed_size
         del self._active_writers[bw]