Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

chore(weed/s3api/policy_engine): prune dead code (#10599)

Lars Lehtonen2ff3dda7cdc1
diff --git a/weed/s3api/policy_engine/engine.go b/weed/s3api/policy_engine/engine.go
index b0a98d6b7d..6e54fdf91b 100644
--- a/weed/s3api/policy_engine/engine.go
+++ b/weed/s3api/policy_engine/engine.go
@@ -26,7 +26,6 @@ type PolicyEvaluationContext struct {
bucketName string
policy *CompiledPolicy
cache *PolicyCache
- mutex sync.RWMutex
}
// PolicyEngine is the main policy evaluation engine
diff --git a/weed/s3api/policy_engine/types.go b/weed/s3api/policy_engine/types.go
index b9df7ab368..fe61b0263b 100644
--- a/weed/s3api/policy_engine/types.go
+++ b/weed/s3api/policy_engine/types.go
@@ -7,7 +7,6 @@ import (
"slices"
"sort"
"strings"
- "time"
"github.com/seaweedfs/seaweedfs/weed/glog"
s3const "github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants"
@@ -320,8 +319,7 @@ type PolicyEvaluationArgs struct {
// PolicyCache for caching compiled policies
type PolicyCache struct {
- policies map[string]*CompiledPolicy
- lastUpdate time.Time
+ policies map[string]*CompiledPolicy
}
// CompiledPolicy represents a policy that has been compiled for efficient evaluation