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 Jan 3, 2020
1 parent d6d5e07 commit 6f1204d
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 @@ -372,10 +372,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 6f1204d

Please sign in to comment.