From 84520653d8e15ae4af4d8ac165b699d29dc2d5e3 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 11 Sep 2025 19:59:51 +0200 Subject: [PATCH] templates: remove deprecated NewParse function This was deprecated in 7ab3e7e77469ca5fe57bfa88e6f0a5b0f302ea53 and no longer used. Signed-off-by: Sebastiaan van Stijn --- templates/templates.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/templates/templates.go b/templates/templates.go index 3f727b9399ff..52ca85a8e70f 100644 --- a/templates/templates.go +++ b/templates/templates.go @@ -69,14 +69,6 @@ func New(tag string) *template.Template { return template.New(tag).Funcs(basicFunctions) } -// NewParse creates a new tagged template with the basic functions -// and parses the given format. -// -// Deprecated: this function is unused and will be removed in the next release. Use [New] if you need to set a tag, or [Parse] instead. -func NewParse(tag, format string) (*template.Template, error) { - return template.New(tag).Funcs(basicFunctions).Parse(format) -} - // padWithSpace adds whitespace to the input if the input is non-empty func padWithSpace(source string, prefix, suffix int) string { if source == "" {