Browse Source

Delete some unneeded code

Carl Jackson 11 years ago
parent
commit
986effffd7
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      web/router.go

+ 1
- 3
web/router.go View File

@ -57,13 +57,11 @@ type router struct {
notFound Handler notFound Handler
machine *routeMachine machine *routeMachine
} }
type netHTTPWrap struct { type netHTTPWrap struct {
http.Handler http.Handler
} }
func (h netHTTPWrap) ServeHTTP(w http.ResponseWriter, r *http.Request) {
h.Handler.ServeHTTP(w, r)
}
func (h netHTTPWrap) ServeHTTPC(c C, w http.ResponseWriter, r *http.Request) { func (h netHTTPWrap) ServeHTTPC(c C, w http.ResponseWriter, r *http.Request) {
h.Handler.ServeHTTP(w, r) h.Handler.ServeHTTP(w, r)
} }


Loading…
Cancel
Save