From 42bf665a7e8dce4bcf472083819339bb58f9fe7a Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 30 Jun 2022 00:22:38 +0400 Subject: [PATCH] Removed unused HTTP methods handler setters. --- pkg/server/http.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/server/http.go b/pkg/server/http.go index 6a7a3e1..34b8cb6 100644 --- a/pkg/server/http.go +++ b/pkg/server/http.go @@ -36,18 +36,6 @@ func (s *HttpServer) POST(path string, handler http.HandlerFunc) { s.router.Handler(http.MethodPost, path, handler) } -func (s *HttpServer) PATCH(path string, handler http.HandlerFunc) { - s.router.Handler(http.MethodPatch, path, handler) -} - -func (s *HttpServer) PUT(path string, handler http.HandlerFunc) { - s.router.Handler(http.MethodPut, path, handler) -} - -func (s *HttpServer) DELETE(path string, handler http.HandlerFunc) { - s.router.Handler(http.MethodDelete, path, handler) -} - func (s *HttpServer) ServeStatic(path string, fsys http.FileSystem) { s.router.ServeFiles(path, fsys) }