Skip to content

Commit f6450b8

Browse files
authored
remove deprecated code for Gogs compitable (#2041)
1 parent c259c43 commit f6450b8

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

modules/setting/setting.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -585,15 +585,7 @@ func NewContext() {
585585

586586
CustomPath = os.Getenv("GITEA_CUSTOM")
587587
if len(CustomPath) == 0 {
588-
// For backward compatibility
589-
// TODO: drop in 1.1.0 ?
590-
CustomPath = os.Getenv("GOGS_CUSTOM")
591-
if len(CustomPath) == 0 {
592-
CustomPath = workDir + "/custom"
593-
} else {
594-
log.Warn(`Usage of GOGS_CUSTOM is deprecated and will be *removed* in a future release,
595-
please consider changing to GITEA_CUSTOM`)
596-
}
588+
CustomPath = workDir + "/custom"
597589
}
598590

599591
if len(CustomPID) > 0 {

0 commit comments

Comments
 (0)