Remove unused code

This commit is contained in:
adnano 2020-09-28 02:17:56 -04:00
parent be9d3d0fbf
commit 11484b8215

View File

@ -414,11 +414,6 @@ func (f HandlerFunc) Serve(rw *ResponseWriter, req *Request) {
f(rw, req)
}
// ServeDir serves files from a directory.
type ServeDir struct {
path string // path to the directory
}
// FileServer takes a filesystem and returns a handler which uses that filesystem.
// The returned Handler rejects requests containing '..' in them.
func FileServer(fsys FS) Handler {