Skip to content

Commit

Permalink
chore(gateway): remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Sep 26, 2019
1 parent 80e0c47 commit 361bb5f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/corehttp/gateway_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,6 @@ func (i *gatewayHandler) getOrHeadHandler(w http.ResponseWriter, r *http.Request
}
}

type sized interface {
Size() (int64, error)
}

func (i *gatewayHandler) serveFile(w http.ResponseWriter, req *http.Request, name string, modtime time.Time, file files.File) {
size, err := file.Size()
if err != nil {
Expand Down

0 comments on commit 361bb5f

Please sign in to comment.