diff --git a/core/corehttp/gateway_handler.go b/core/corehttp/gateway_handler.go index 196f053d568..c02dc3e7287 100644 --- a/core/corehttp/gateway_handler.go +++ b/core/corehttp/gateway_handler.go @@ -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 {