Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 54c1d2d

Browse files
committed
chore: remove no-longer-used shims
1 parent 12e5816 commit 54c1d2d

1 file changed

Lines changed: 2 additions & 23 deletions

File tree

tests/unit/test_bucket.py

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3830,31 +3830,10 @@ def __init__(self, *responses):
38303830
self._deleted_buckets = []
38313831
self.credentials = None
38323832

3833-
@staticmethod
3834-
def _is_bucket_path(path):
3835-
# Now just ensure the path only has /b/ and one more segment.
3836-
return path.startswith("/b/") and path.count("/") == 2
3837-
38383833
def api_request(self, **kw):
3839-
from google.cloud.exceptions import NotFound
3840-
38413834
self._requested.append(kw)
3842-
3843-
method = kw.get("method")
3844-
path = kw.get("path", "")
3845-
if method == "DELETE" and self._is_bucket_path(path):
3846-
self._deleted_buckets.append(kw)
3847-
if self._delete_bucket:
3848-
return
3849-
else:
3850-
raise NotFound("miss")
3851-
3852-
try:
3853-
response, self._responses = self._responses[0], self._responses[1:]
3854-
except IndexError:
3855-
raise NotFound("miss")
3856-
else:
3857-
return response
3835+
response, self._responses = self._responses[0], self._responses[1:]
3836+
return response
38583837

38593838

38603839
class _Client(object):

0 commit comments

Comments
 (0)