From 3850bad4c07128a144e98db8bf5fc314a4e12bd9 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Sat, 30 Dec 2017 20:10:48 -0500 Subject: [PATCH] Remove unused consts/vars (#3270) --- models/repo.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/models/repo.go b/models/repo.go index 7c538525f29..f8057b75104 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") )