From c53bc64780f76b4a7a3843c37b85b9227e561f2a Mon Sep 17 00:00:00 2001
From: Joe Zou <yixian.zou@gmail.com>
Date: Sat, 8 Feb 2020 20:44:13 +0800
Subject: [PATCH] delete useless file

---
 common/url.go           | 21 ---------------------
 config/config_loader.go |  1 +
 2 files changed, 1 insertion(+), 21 deletions(-)

diff --git a/common/url.go b/common/url.go
index a9f64453f..a9a679aff 100644
--- a/common/url.go
+++ b/common/url.go
@@ -315,27 +315,6 @@ func (c URL) Key() string {
 	//return c.ServiceKey()
 }
 
-// ColonSeparatedKey The format is "{interface}:[version]:[group]"
-func (c *URL) ColonSeparatedKey() string {
-	intf := c.GetParam(constant.INTERFACE_KEY, strings.TrimPrefix(c.Path, "/"))
-	if intf == "" {
-		return ""
-	}
-	buf := &bytes.Buffer{}
-	buf.WriteString(intf)
-	buf.WriteString(":")
-	version := c.GetParam(constant.VERSION_KEY, "")
-	if version != "" && version != "0.0.0" {
-		buf.WriteString(version)
-	}
-	group := c.GetParam(constant.GROUP_KEY, "")
-	buf.WriteString(":")
-	if group != "" {
-		buf.WriteString(group)
-	}
-	return buf.String()
-}
-
 // ServiceKey ...
 func (c URL) ServiceKey() string {
 	intf := c.GetParam(constant.INTERFACE_KEY, strings.TrimPrefix(c.Path, "/"))
diff --git a/config/config_loader.go b/config/config_loader.go
index f463c27cb..e45ccaf4a 100644
--- a/config/config_loader.go
+++ b/config/config_loader.go
@@ -35,6 +35,7 @@ var (
 	providerConfig    *ProviderConfig
 	metricConfig      *MetricConfig
 	applicationConfig *ApplicationConfig
+	routerConfig      *ConditionRouterConfig
 	maxWait           = 3
 )
 
-- 
GitLab