aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2025-07-16 16:30:07 -0700
committerchrislu <chris.lu@gmail.com>2025-07-16 16:30:07 -0700
commit22465b8a96340f8f2d1d1421522615d8ef071d85 (patch)
treeaf819032c4b963425612d1cb3632216a4f4f40fe
parent39b574f3c5de5b1824046253f1e38cc99f0b4ca2 (diff)
downloadseaweedfs-22465b8a96340f8f2d1d1421522615d8ef071d85.tar.xz
seaweedfs-22465b8a96340f8f2d1d1421522615d8ef071d85.zip
unused
-rw-r--r--weed/s3api/s3api_bucket_config.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/weed/s3api/s3api_bucket_config.go b/weed/s3api/s3api_bucket_config.go
index a157b93e8..f6de0529e 100644
--- a/weed/s3api/s3api_bucket_config.go
+++ b/weed/s3api/s3api_bucket_config.go
@@ -240,29 +240,6 @@ func (s3a *S3ApiServer) setBucketOwnership(bucket, ownership string) s3err.Error
})
}
-// removeBucketConfigKey removes a specific configuration key from bucket
-func (s3a *S3ApiServer) removeBucketConfigKey(bucket, key string) s3err.ErrorCode {
- return s3a.updateBucketConfig(bucket, func(config *BucketConfig) error {
- if config.Entry.Extended != nil {
- delete(config.Entry.Extended, key)
- }
-
- // Update our local config too
- switch key {
- case s3_constants.ExtVersioningKey:
- config.Versioning = ""
- case s3_constants.ExtOwnershipKey:
- config.Ownership = ""
- case s3_constants.ExtAmzAclKey:
- config.ACL = nil
- case s3_constants.ExtAmzOwnerKey:
- config.Owner = ""
- }
-
- return nil
- })
-}
-
// loadCORSFromMetadata loads CORS configuration from bucket metadata
func (s3a *S3ApiServer) loadCORSFromMetadata(bucket string) (*cors.CORSConfiguration, error) {
// Validate bucket name to prevent path traversal attacks