Skip to content

A self-hosted dashboard that puts all your feeds in one place

Remove unused functions

Svilen Markovb35cc437d33a
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()))
},