From 7c4711da1bf4c0de742fcef51c26ca4a117c292a Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 20 Nov 2021 21:39:38 +0100 Subject: [PATCH] Problem: templateFile is unused Solution: remove templateFile --- cmd/eksterd/http.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/eksterd/http.go b/cmd/eksterd/http.go index 74f258b..5f9b6da 100644 --- a/cmd/eksterd/http.go +++ b/cmd/eksterd/http.go @@ -106,10 +106,6 @@ func newMainHandler(backend *memoryBackend, baseURL, templateDir string, pool *r return h, nil } -func (h *mainHandler) templateFile(filename string) string { - return fmt.Sprintf("%s/%s", h.TemplateDir, filename) -} - func (h *mainHandler) renderTemplate(w io.Writer, filename string, data interface{}) error { fsys, err := fs.Sub(templates, "templates") if err != nil {