Remove some dead code (#27196)

Some code is not in use any more, remove them.
pull/27200/head
wxiaoguang 1 year ago committed by GitHub
parent 383edf2fd7
commit c0ed26f987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/setting/server.go
  2. 2
      modules/web/middleware/data.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
)

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