Skip to content

Commit aeed0e8

Browse files
committed
remove unused function
1 parent 0b8c19a commit aeed0e8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

handler.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,8 @@ import (
1010
// HandlerFunc Twig的Handler方法
1111
type HandlerFunc func(Ctx) error
1212

13-
// Mount Mount当前Handler到注册器
14-
func (h HandlerFunc) Mount(reg Register, method, path string, m ...MiddlewareFunc) {
15-
reg.AddHandler(method, path, h, m...)
16-
}
17-
1813
type MiddlewareFunc func(HandlerFunc) HandlerFunc
1914

20-
func (m MiddlewareFunc) UsedBy(reg Register) {
21-
reg.Use(m)
22-
}
23-
2415
// WrapHttpHandler 包装http.Handler 为HandlerFunc
2516
func WrapHttpHandler(h http.Handler) HandlerFunc {
2617
return func(c Ctx) error {

0 commit comments

Comments
 (0)