aboutsummaryrefslogtreecommitdiffstats
path: root/modules/web
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-09-22 23:30:31 +0800
committerGitHub <noreply@github.com>2023-09-22 23:30:31 +0800
commitc0ed26f98725cd9d24fd4ab90fb8c677fd0d3e0f (patch)
tree7e0b7c390cbe79cb45db5cd3a3876e5f5bc4615a /modules/web
parent383edf2fd7d3cf952c491dd483ba68d7a8e4aaf2 (diff)
downloadgitea-c0ed26f98725cd9d24fd4ab90fb8c677fd0d3e0f.tar.gz
gitea-c0ed26f98725cd9d24fd4ab90fb8c677fd0d3e0f.zip
Remove some dead code (#27196)
Some code is not in use any more, remove them.
Diffstat (limited to 'modules/web')
-rw-r--r--modules/web/middleware/data.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/web/middleware/data.go b/modules/web/middleware/data.go
index 9497dc02e2..08d83f94be 100644
--- a/modules/web/middleware/data.go
+++ b/modules/web/middleware/data.go
@@ -47,8 +47,6 @@ func GetContextData(c context.Context) ContextData {
func CommonTemplateContextData() ContextData {
return ContextData{
- "IsLandingPageHome": setting.LandingPageURL == setting.LandingPageHome,
- "IsLandingPageExplore": setting.LandingPageURL == setting.LandingPageExplore,
"IsLandingPageOrganizations": setting.LandingPageURL == setting.LandingPageOrganizations,
"ShowRegistrationButton": setting.Service.ShowRegistrationButton,