aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin/bucket.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-12 11:21:23 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-12 11:21:23 +0200
commited768935815851a7e4b8880f0cb8fc91e35e3027 (patch)
treec11fa9987ceec56a4e6aac21e427211e669ef8c5 /src/api/admin/bucket.rs
parentfc2f73ddb5ecaca250daa7b034fe59fb8c47f570 (diff)
downloadgarage-ed768935815851a7e4b8880f0cb8fc91e35e3027.tar.gz
garage-ed768935815851a7e4b8880f0cb8fc91e35e3027.zip
Simplify
Diffstat (limited to 'src/api/admin/bucket.rs')
-rw-r--r--src/api/admin/bucket.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/api/admin/bucket.rs b/src/api/admin/bucket.rs
index 16e9c174..6901f139 100644
--- a/src/api/admin/bucket.rs
+++ b/src/api/admin/bucket.rs
@@ -369,20 +369,6 @@ pub async fn handle_delete_bucket(
.body(Body::empty())?)
}
-pub async fn handle_bucket_allow_key(
- garage: &Arc<Garage>,
- req: Request<Body>,
-) -> Result<Response<Body>, Error> {
- handle_bucket_change_key_perm(garage, req, true).await
-}
-
-pub async fn handle_bucket_deny_key(
- garage: &Arc<Garage>,
- req: Request<Body>,
-) -> Result<Response<Body>, Error> {
- handle_bucket_change_key_perm(garage, req, false).await
-}
-
pub async fn handle_bucket_change_key_perm(
garage: &Arc<Garage>,
req: Request<Body>,