From 94233b88134e9a00e3a7cc77bef3c8b3d801e250 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@lothar.com>
Date: Sun, 2 Sep 2007 15:00:29 -0700
Subject: [PATCH] storage: remove unused delete_bucket() method,
 lease-cancellation covers it

---
 src/allmydata/storage.py | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/allmydata/storage.py b/src/allmydata/storage.py
index 480867cb..5132fd4c 100644
--- a/src/allmydata/storage.py
+++ b/src/allmydata/storage.py
@@ -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]
-- 
2.45.2