From c0ed26f98725cd9d24fd4ab90fb8c677fd0d3e0f Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 22 Sep 2023 23:30:31 +0800 Subject: [PATCH] Remove some dead code (#27196) Some code is not in use any more, remove them. --- modules/setting/server.go | 2 -- modules/web/middleware/data.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/modules/setting/server.go b/modules/setting/server.go index 08eb82fb3d..d053fee5e7 100644 --- a/modules/setting/server.go +++ b/modules/setting/server.go @@ -81,7 +81,6 @@ var ( StaticCacheTime time.Duration EnableGzip bool LandingPageURL LandingPage - LandingPageCustom string UnixSocketPermission uint32 EnablePprof bool PprofDataPath string @@ -103,7 +102,6 @@ var ( StaticURLPrefix string AbsoluteAssetURL string - HasRobotsTxt bool ManifestData string ) 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,