mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-08-16 04:06:44 +00:00
chore(weed/s3api/policy_engine): prune dead code (#10599)
This commit is contained in:
@@ -26,7 +26,6 @@ type PolicyEvaluationContext struct {
|
||||
bucketName string
|
||||
policy *CompiledPolicy
|
||||
cache *PolicyCache
|
||||
mutex sync.RWMutex
|
||||
}
|
||||
|
||||
// PolicyEngine is the main policy evaluation engine
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user