Browse Source

Remove some dead code (#27196)

Some code is not in use any more, remove them.
tags/v1.22.0-rc0
wxiaoguang 9 months ago
parent
commit
c0ed26f987
No account linked to committer's email address
2 changed files with 0 additions and 4 deletions
  1. 0
    2
      modules/setting/server.go
  2. 0
    2
      modules/web/middleware/data.go

+ 0
- 2
modules/setting/server.go View File

@@ -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
)


+ 0
- 2
modules/web/middleware/data.go View File

@@ -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,

Loading…
Cancel
Save