mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
remove unused code
This commit is contained in:
parent
a7474e1f8a
commit
6e82128dc9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user