mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Remove some dead code (#27196)
Some code is not in use any more, remove them.
This commit is contained in:
		@@ -81,7 +81,6 @@ var (
 | 
				
			|||||||
	StaticCacheTime            time.Duration
 | 
						StaticCacheTime            time.Duration
 | 
				
			||||||
	EnableGzip                 bool
 | 
						EnableGzip                 bool
 | 
				
			||||||
	LandingPageURL             LandingPage
 | 
						LandingPageURL             LandingPage
 | 
				
			||||||
	LandingPageCustom          string
 | 
					 | 
				
			||||||
	UnixSocketPermission       uint32
 | 
						UnixSocketPermission       uint32
 | 
				
			||||||
	EnablePprof                bool
 | 
						EnablePprof                bool
 | 
				
			||||||
	PprofDataPath              string
 | 
						PprofDataPath              string
 | 
				
			||||||
@@ -103,7 +102,6 @@ var (
 | 
				
			|||||||
	StaticURLPrefix            string
 | 
						StaticURLPrefix            string
 | 
				
			||||||
	AbsoluteAssetURL           string
 | 
						AbsoluteAssetURL           string
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	HasRobotsTxt bool
 | 
					 | 
				
			||||||
	ManifestData string
 | 
						ManifestData string
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -47,8 +47,6 @@ func GetContextData(c context.Context) ContextData {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
func CommonTemplateContextData() ContextData {
 | 
					func CommonTemplateContextData() ContextData {
 | 
				
			||||||
	return ContextData{
 | 
						return ContextData{
 | 
				
			||||||
		"IsLandingPageHome":          setting.LandingPageURL == setting.LandingPageHome,
 | 
					 | 
				
			||||||
		"IsLandingPageExplore":       setting.LandingPageURL == setting.LandingPageExplore,
 | 
					 | 
				
			||||||
		"IsLandingPageOrganizations": setting.LandingPageURL == setting.LandingPageOrganizations,
 | 
							"IsLandingPageOrganizations": setting.LandingPageURL == setting.LandingPageOrganizations,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		"ShowRegistrationButton":        setting.Service.ShowRegistrationButton,
 | 
							"ShowRegistrationButton":        setting.Service.ShowRegistrationButton,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user