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

This commit is contained in:
Lars Lehtonen
2026-08-06 16:07:59 -07:00
committed by GitHub
parent fb92d46e2d
commit 2ff3dda7cd
2 changed files with 1 additions and 4 deletions
-1
View File
@@ -26,7 +26,6 @@ type PolicyEvaluationContext struct {
bucketName string
policy *CompiledPolicy
cache *PolicyCache
mutex sync.RWMutex
}
// PolicyEngine is the main policy evaluation engine
+1 -3
View File
@@ -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