summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/labstack/echo/router.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/labstack/echo/router.go')
-rw-r--r--vendor/github.com/labstack/echo/router.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/vendor/github.com/labstack/echo/router.go b/vendor/github.com/labstack/echo/router.go
index 626fe225..3af4be0b 100644
--- a/vendor/github.com/labstack/echo/router.go
+++ b/vendor/github.com/labstack/echo/router.go
@@ -1,7 +1,5 @@
package echo
-import "strings"
-
type (
// Router is the registry of all registered routes for an `Echo` instance for
// request matching and URL path parameter parsing.
@@ -175,12 +173,6 @@ func (r *Router) insert(method, path string, h HandlerFunc, t kind, ppath string
if len(cn.pnames) == 0 { // Issue #729
cn.pnames = pnames
}
- for i, n := range pnames {
- // Param name aliases
- if i < len(cn.pnames) && !strings.Contains(cn.pnames[i], n) {
- cn.pnames[i] += "," + n
- }
- }
}
}
return