1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

style(filter): clean dead code.

This commit is contained in:
wdvxdr 2021-06-19 21:27:51 +08:00
parent 7c5bd64e9b
commit 63e1508815
No known key found for this signature in database
GPG Key ID: 55FF1414A69CEBA6

View File

@ -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 {