diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-06-23 14:29:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-23 14:29:53 +0800 |
commit | f6450b8f92cbd334f59aa2599bf3b4f09e676445 (patch) | |
tree | c08cd25bec44fa55529a5c454e07713df5f8ccec /modules | |
parent | c259c436d72df1a4a2e49d231dffe30d78c004fc (diff) | |
download | gitea-f6450b8f92cbd334f59aa2599bf3b4f09e676445.tar.gz gitea-f6450b8f92cbd334f59aa2599bf3b4f09e676445.zip |
remove deprecated code for Gogs compitable (#2041)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/setting.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 6307cc87d6..a51e0e7599 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -585,15 +585,7 @@ func NewContext() { CustomPath = os.Getenv("GITEA_CUSTOM") if len(CustomPath) == 0 { - // For backward compatibility - // TODO: drop in 1.1.0 ? - CustomPath = os.Getenv("GOGS_CUSTOM") - if len(CustomPath) == 0 { - CustomPath = workDir + "/custom" - } else { - log.Warn(`Usage of GOGS_CUSTOM is deprecated and will be *removed* in a future release, -please consider changing to GITEA_CUSTOM`) - } + CustomPath = workDir + "/custom" } if len(CustomPID) > 0 { |