From b4fb657efd89ffca1a1059c55a804f8e1ce97aed Mon Sep 17 00:00:00 2001 From: knightmare Date: Mon, 25 Nov 2013 16:15:48 +0800 Subject: [PATCH] eliminated improper comments --- router.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/router.go b/router.go index fe85bd8f..05465ef2 100644 --- a/router.go +++ b/router.go @@ -222,7 +222,6 @@ func (p *ControllerRegistor) AddAuto(c ControllerInterface) { } } -// Filter adds the middleware filter. func buildFilter(pattern string, filter FilterFunc) *FilterRouter { mr := new(FilterRouter) mr.filterFunc = filter @@ -266,7 +265,6 @@ func buildFilter(pattern string, filter FilterFunc) *FilterRouter { return mr } -//p.filters[action] = append(p.filters[action], mr) func (p *ControllerRegistor) AddFilter(pattern, action string, filter FilterFunc) { mr := buildFilter(pattern, filter) switch action {