forked from Fuyu/router
Remove unused code
This commit is contained in:
parent
4cc4ce2a2e
commit
0990f5bafe
1 changed files with 0 additions and 7 deletions
|
@ -125,13 +125,6 @@ func (r *Router) getHttpr() *httprouter.Router {
|
||||||
return httpr
|
return httpr
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleErr(errHandler ErrorHandle, err interface{}) Handle {
|
|
||||||
return func(c *Context) error {
|
|
||||||
errHandler(c, err)
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func checkInterfaceHandle(f interface{}) {
|
func checkInterfaceHandle(f interface{}) {
|
||||||
if _, ok := f.(Handle); ok {
|
if _, ok := f.(Handle); ok {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue