Skip to content

Commit 6e82128

Browse files
committed
remove unused code
1 parent a7474e1 commit 6e82128

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

app/router/condition.go

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -39,31 +39,6 @@ func (v *ConditionChan) Len() int {
3939
return len(*v)
4040
}
4141

42-
type AnyCondition []Condition
43-
44-
func NewAnyCondition() *AnyCondition {
45-
var anyCond AnyCondition = make([]Condition, 0, 8)
46-
return &anyCond
47-
}
48-
49-
func (v *AnyCondition) Add(cond Condition) *AnyCondition {
50-
*v = append(*v, cond)
51-
return v
52-
}
53-
54-
func (v *AnyCondition) Apply(ctx context.Context) bool {
55-
for _, cond := range *v {
56-
if cond.Apply(ctx) {
57-
return true
58-
}
59-
}
60-
return false
61-
}
62-
63-
func (v *AnyCondition) Len() int {
64-
return len(*v)
65-
}
66-
6742
var matcherTypeMap = map[Domain_Type]strmatcher.Type{
6843
Domain_Plain: strmatcher.Substr,
6944
Domain_Regex: strmatcher.Regex,

0 commit comments

Comments
 (0)