1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 22:01:29 +00:00

eliminated improper comments

This commit is contained in:
knightmare 2013-11-25 16:15:48 +08:00
parent 8c3b936c60
commit b4fb657efd

View File

@ -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 {