From b35cc437d33a41092e93cbbf838c433842650394 Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Thu, 22 Aug 2024 22:43:10 +0100 Subject: [PATCH] Remove unused functions --- internal/assets/templates.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/internal/assets/templates.go b/internal/assets/templates.go index 8274c8c..e29ed91 100644 --- a/internal/assets/templates.go +++ b/internal/assets/templates.go @@ -50,19 +50,6 @@ var globalTemplateFunctions = template.FuncMap{ "formatPrice": func(price float64) string { return intl.Sprintf("%.2f", price) }, - "formatTime": func(t time.Time) string { - return t.Format("2006-01-02 15:04:05") - }, - "shouldCollapse": func(i int, collapseAfter int) bool { - if collapseAfter < -1 { - return false - } - - return i >= collapseAfter - }, - "itemAnimationDelay": func(i int, collapseAfter int) string { - return fmt.Sprintf("%dms", (i-collapseAfter)*30) - }, "dynamicRelativeTimeAttrs": func(t time.Time) template.HTMLAttr { return template.HTMLAttr(fmt.Sprintf(`data-dynamic-relative-time="%d"`, t.Unix())) },