Skip to content

Commit

Permalink
Remove some dead code (#27196)
Browse files Browse the repository at this point in the history
Some code is not in use any more, remove them.
  • Loading branch information
wxiaoguang authored Sep 22, 2023
1 parent 383edf2 commit c0ed26f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions modules/setting/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ var (
StaticCacheTime time.Duration
EnableGzip bool
LandingPageURL LandingPage
LandingPageCustom string
UnixSocketPermission uint32
EnablePprof bool
PprofDataPath string
Expand All @@ -103,7 +102,6 @@ var (
StaticURLPrefix string
AbsoluteAssetURL string

HasRobotsTxt bool
ManifestData string
)

Expand Down
2 changes: 0 additions & 2 deletions modules/web/middleware/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c0ed26f

Please sign in to comment.