From 2ff3dda7cdc1fceec22d5788d6355d06aba2dacb Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Thu, 6 Aug 2026 16:07:59 -0700 Subject: [PATCH] chore(weed/s3api/policy_engine): prune dead code (#10599) --- weed/s3api/policy_engine/engine.go | 1 - weed/s3api/policy_engine/types.go | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/weed/s3api/policy_engine/engine.go b/weed/s3api/policy_engine/engine.go index b0a98d6b7..6e54fdf91 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 b9df7ab36..fe61b0263 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