aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-12-30 20:10:48 -0500
committerLunny Xiao <xiaolunwen@gmail.com>2017-12-30 19:10:48 -0600
commit3850bad4c07128a144e98db8bf5fc314a4e12bd9 (patch)
treeb562bead650f00ee2290db103f6e63379d10f7f6
parent3d3faa26248e46ed00617caedab6670b89b4b504 (diff)
downloadgitea-3850bad4c07128a144e98db8bf5fc314a4e12bd9.tar.gz
gitea-3850bad4c07128a144e98db8bf5fc314a4e12bd9.zip
Remove unused consts/vars (#3270)
-rw-r--r--models/repo.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/models/repo.go b/models/repo.go
index 7c538525f2..f8057b7510 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -37,25 +37,12 @@ import (
"gopkg.in/ini.v1"
)
-const (
- tplUpdateHook = "#!/usr/bin/env %s\n%s update $1 $2 $3 --config='%s'\n"
-)
-
var repoWorkingPool = sync.NewExclusivePool()
var (
- // ErrRepoFileNotExist repository file does not exist error
- ErrRepoFileNotExist = errors.New("Repository file does not exist")
-
- // ErrRepoFileNotLoaded repository file not loaded error
- ErrRepoFileNotLoaded = errors.New("Repository file not loaded")
-
// ErrMirrorNotExist mirror does not exist error
ErrMirrorNotExist = errors.New("Mirror does not exist")
- // ErrInvalidReference invalid reference specified error
- ErrInvalidReference = errors.New("Invalid reference specified")
-
// ErrNameEmpty name is empty error
ErrNameEmpty = errors.New("Name is empty")
)