Skip to content

Commit

Permalink
Clean dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-konina-reef committed Sep 30, 2024
1 parent 6de2bf7 commit 0c99247
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/integration/persistent_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ def virtual_bucket_name(self):
return f"{self.bucket_name}/{self.subfolder}"


@backoff.on_exception(backoff.expo, Exception, max_tries=3, max_time=10)
def delete_files(bucket: Bucket, subfolder: str):
for file_version, _ in bucket.ls(recursive=True, folder_to_list=subfolder):
bucket.delete_file_version(file_version.id_, file_version.file_name)


def get_persistent_bucket_name(b2_api: Api) -> str:
bucket_base = os.environ.get("GITHUB_REPOSITORY_ID", b2_api.api.get_account_id())
bucket_hash = hashlib.sha256(bucket_base.encode()).hexdigest()
Expand Down

0 comments on commit 0c99247

Please sign in to comment.