🧹 remove old code

pull/830/head
Fenny 2020-09-26 11:25:32 +02:00
parent e414c4a83e
commit 753391b217
2 changed files with 0 additions and 20 deletions

10
app.go
View File

@ -364,16 +364,6 @@ func (app *App) Use(args ...interface{}) Router {
prefix = arg
case Handler:
handlers = append(handlers, arg)
// // TODO: v2.1.0
// case *App:
// stack := arg.Stack()
// for m := range stack {
// for r := range stack[m] {
// route := app.copyRoute(stack[m][r])
// app.addRoute(route.Method, app.addPrefixToRoute(prefix, route))
// }
// }
// return app
default:
panic(fmt.Sprintf("use: invalid handler %v\n", reflect.TypeOf(arg)))
}

View File

@ -52,16 +52,6 @@ func (grp *Group) Use(args ...interface{}) Router {
prefix = arg
case Handler:
handlers = append(handlers, arg)
// TODO: v2.1.0
// case *App:
// stack := arg.Stack()
// for m := range stack {
// for r := range stack[m] {
// route := grp.app.copyRoute(stack[m][r])
// grp.app.addRoute(route.Method, grp.app.addPrefixToRoute(prefix, route))
// }
// }
// return grp.app
default:
panic(fmt.Sprintf("use: invalid handler %v\n", reflect.TypeOf(arg)))
}