mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-03 10:37:35 +01:00
chore(weed/s3api/policy_engine): prune dead code (#10599)
This commit is contained in:
1 parent
fb92d46e2d
commit
2ff3dda7cd
2 files changed
+1
-4
No files matched your search
@@ -26,7 +26,6 @@ type PolicyEvaluationContext struct {
|
|||||||
bucketName string
|
bucketName string
|
||||||
policy *CompiledPolicy
|
policy *CompiledPolicy
|
||||||
cache *PolicyCache
|
cache *PolicyCache
|
||||||
mutex sync.RWMutex
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// PolicyEngine is the main policy evaluation engine
|
// PolicyEngine is the main policy evaluation engine
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import (
|
|||||||
"slices"
|
"slices"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/seaweedfs/seaweedfs/weed/glog"
|
"github.com/seaweedfs/seaweedfs/weed/glog"
|
||||||
s3const "github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants"
|
s3const "github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants"
|
||||||
@@ -320,8 +319,7 @@ type PolicyEvaluationArgs struct {
|
|||||||
|
|
||||||
// PolicyCache for caching compiled policies
|
// PolicyCache for caching compiled policies
|
||||||
type PolicyCache struct {
|
type PolicyCache struct {
|
||||||
policies map[string]*CompiledPolicy
|
policies map[string]*CompiledPolicy
|
||||||
lastUpdate time.Time
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CompiledPolicy represents a policy that has been compiled for efficient evaluation
|
// CompiledPolicy represents a policy that has been compiled for efficient evaluation
|
||||||
|
|||||||
Reference in new issue
Block a user