Skip to content

Commit 2618dd9

Browse files
committed
Remove unused code
1 parent 9c549d3 commit 2618dd9

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

engine/serve.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"time"
1111

1212
"github.com/caddyserver/certmagic"
13-
"github.com/julienschmidt/httprouter"
1413
"github.com/sirupsen/logrus"
1514
"github.com/tylerb/graceful"
1615
"github.com/xyproto/env/v2"
@@ -31,12 +30,6 @@ func AtShutdown(shutdownFunction func()) {
3130
shutdownFunctions = append(shutdownFunctions, shutdownFunction)
3231
}
3332

34-
func adaptHTTPHandlerFunc(h http.HandlerFunc) httprouter.Handle {
35-
return func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
36-
h(w, r)
37-
}
38-
}
39-
4033
// NewGracefulServer creates a new graceful server configuration
4134
func (ac *Config) NewGracefulServer(handler http.Handler, http2support bool, addr string) *graceful.Server {
4235
// Server configuration

0 commit comments

Comments
 (0)