summaryrefslogtreecommitdiffstats
path: root/modules/templates
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2021-12-03 04:33:34 +0100
committerGitHub <noreply@github.com>2021-12-03 11:33:34 +0800
commit6ceef876719c618e3f935337a70019040701076a (patch)
tree73b40653545c0e28305f47117f69fe016a1188f3 /modules/templates
parent03ec9e5060dd4874aec46ab1e0382b2bf7886f8f (diff)
downloadgitea-6ceef876719c618e3f935337a70019040701076a.tar.gz
gitea-6ceef876719c618e3f935337a70019040701076a.zip
Removed SizeFmt. (#17890)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'modules/templates')
-rw-r--r--modules/templates/helper.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index db9dbb90a5..eb0c7f7e71 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -125,7 +125,6 @@ func NewFuncMap() []template.FuncMap {
"DateFmtShort": func(t time.Time) string {
return t.Format("Jan 02, 2006")
},
- "SizeFmt": base.FileSize,
"CountFmt": base.FormatNumberSI,
"SubStr": func(str string, start, length int) string {
if len(str) == 0 {