Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Nov 5, 2018
1 parent a7474e1 commit 6e82128
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions app/router/condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,31 +39,6 @@ func (v *ConditionChan) Len() int {
return len(*v)
}

type AnyCondition []Condition

func NewAnyCondition() *AnyCondition {
var anyCond AnyCondition = make([]Condition, 0, 8)
return &anyCond
}

func (v *AnyCondition) Add(cond Condition) *AnyCondition {
*v = append(*v, cond)
return v
}

func (v *AnyCondition) Apply(ctx context.Context) bool {
for _, cond := range *v {
if cond.Apply(ctx) {
return true
}
}
return false
}

func (v *AnyCondition) Len() int {
return len(*v)
}

var matcherTypeMap = map[Domain_Type]strmatcher.Type{
Domain_Plain: strmatcher.Substr,
Domain_Regex: strmatcher.Regex,
Expand Down

0 comments on commit 6e82128

Please sign in to comment.