diff --git a/common/extension/engine.go b/common/extension/engine.go deleted file mode 100644 index 8013091b924a46db5da20526c13bcb3c4cf4f1d6..0000000000000000000000000000000000000000 --- a/common/extension/engine.go +++ /dev/null @@ -1,22 +0,0 @@ -package extension - -import ( - "github.com/apache/dubbo-go/cluster" - "github.com/apache/dubbo-go/common" -) - -var ( - engines = make(map[string]func(config *common.URL) (cluster.Router, error)) -) - -func SetEngine(name string, v func(config *common.URL) (cluster.Router, error)) { - engines[name] = v -} - -func GetEngine(name string, config *common.URL) (cluster.Router, error) { - if engines[name] == nil { - panic("registry for " + name + " is not existing, make sure you have import the package.") - } - return engines[name](config) - -}