mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-13 13:53:07 +00:00
storage: remove unused delete_bucket() method, lease-cancellation covers it
This commit is contained in:
parent
85f3107b12
commit
94233b8813
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user