Remove unused code
This commit is contained in:
parent
be9d3d0fbf
commit
11484b8215
|
@ -414,11 +414,6 @@ func (f HandlerFunc) Serve(rw *ResponseWriter, req *Request) {
|
||||||
f(rw, req)
|
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.
|
// FileServer takes a filesystem and returns a handler which uses that filesystem.
|
||||||
// The returned Handler rejects requests containing '..' in them.
|
// The returned Handler rejects requests containing '..' in them.
|
||||||
func FileServer(fsys FS) Handler {
|
func FileServer(fsys FS) Handler {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user