From: Brian Warner Date: Sun, 2 Sep 2007 22:00:29 +0000 (-0700) Subject: storage: remove unused delete_bucket() method, lease-cancellation covers it X-Git-Url: https://git.rkrishnan.org/pf/content/en/service/module-simplejson.encoder.html?a=commitdiff_plain;h=94233b88134e9a00e3a7cc77bef3c8b3d801e250;p=tahoe-lafs%2Ftahoe-lafs.git storage: remove unused delete_bucket() method, lease-cancellation covers it --- 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]