From 0f2b87497b5ed1207cd01440e52fe47ec05b082b Mon Sep 17 00:00:00 2001 From: "Maze.tsz" Date: Fri, 26 Nov 2021 00:57:29 +0800 Subject: [PATCH] Revert "[fix]code" This reverts commit 06e9243fdad1cd76944a88da041ae911425235c0. --- constant/provider/interface.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/constant/provider/interface.go b/constant/provider/interface.go index 08cd19269..7f1bda429 100644 --- a/constant/provider/interface.go +++ b/constant/provider/interface.go @@ -2,7 +2,6 @@ package provider import "C" import ( - "errors" "github.com/Dreamacro/clash/component/trie" "github.com/Dreamacro/clash/constant" ) @@ -108,9 +107,6 @@ type RuleProvider interface { } var ( - parse = func(ruleType, rule string, params []string) (constant.Rule, error) { - return nil, errors.New("unimplemented function") - } ruleProviders = map[string]*RuleProvider{} ) @@ -122,7 +118,7 @@ type ruleSetProvider struct { count int DomainRules *trie.DomainTrie IPCIDRRules *trie.IpCidrTrie - ClassicalRules []constant.Rule + ClassicalRules []C.Rule } type RuleSetProvider struct {