From 63e1508815d56bf9a2e636d2c99b146a1f93500e Mon Sep 17 00:00:00 2001 From: wdvxdr Date: Sat, 19 Jun 2021 21:27:51 +0800 Subject: [PATCH] style(filter): clean dead code. --- global/filter.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/global/filter.go b/global/filter.go index ad4fe40..61fe667 100644 --- a/global/filter.go +++ b/global/filter.go @@ -219,17 +219,6 @@ func (op *regexOperator) Eval(payload gjson.Result) bool { return op.regex.MatchString(payload.String()) } -var opFunc = map[string]func(gjson.Result) Filter{ - "not": newNotOp, - "and": newAndOp, - "or": newOrOp, - "eq": newEqOp, - "neq": newNeqOp, - "in": newInOp, - "contains": newContainOp, - "regex": newRegexOp, -} - // Generate 根据给定操作符名opName及操作符参数argument创建一个过滤器实例 func Generate(opName string, argument gjson.Result) Filter { switch opName {