Skip to content

Commit c0ed26f

Browse files
authored
Remove some dead code (#27196)
Some code is not in use any more, remove them.
1 parent 383edf2 commit c0ed26f

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

modules/setting/server.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ var (
8181
StaticCacheTime time.Duration
8282
EnableGzip bool
8383
LandingPageURL LandingPage
84-
LandingPageCustom string
8584
UnixSocketPermission uint32
8685
EnablePprof bool
8786
PprofDataPath string
@@ -103,7 +102,6 @@ var (
103102
StaticURLPrefix string
104103
AbsoluteAssetURL string
105104

106-
HasRobotsTxt bool
107105
ManifestData string
108106
)
109107

modules/web/middleware/data.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ func GetContextData(c context.Context) ContextData {
4747

4848
func CommonTemplateContextData() ContextData {
4949
return ContextData{
50-
"IsLandingPageHome": setting.LandingPageURL == setting.LandingPageHome,
51-
"IsLandingPageExplore": setting.LandingPageURL == setting.LandingPageExplore,
5250
"IsLandingPageOrganizations": setting.LandingPageURL == setting.LandingPageOrganizations,
5351

5452
"ShowRegistrationButton": setting.Service.ShowRegistrationButton,

0 commit comments

Comments
 (0)