summaryrefslogtreecommitdiffstats
path: root/modules/templates
diff options
context:
space:
mode:
Diffstat (limited to 'modules/templates')
-rw-r--r--modules/templates/helper.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 30ca767cae..d9c297411a 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -5,7 +5,6 @@
package templates
import (
- "context"
"fmt"
"html"
"html/template"
@@ -13,7 +12,6 @@ import (
"strings"
"time"
- system_model "code.gitea.io/gitea/models/system"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/emoji"
"code.gitea.io/gitea/modules/markup"
@@ -104,9 +102,6 @@ func NewFuncMap() template.FuncMap {
"AssetVersion": func() string {
return setting.AssetVersion
},
- "DisableGravatar": func(ctx context.Context) bool {
- return system_model.GetSettingWithCacheBool(ctx, system_model.KeyPictureDisableGravatar)
- },
"DefaultShowFullName": func() bool {
return setting.UI.DefaultShowFullName
},