diff options
Diffstat (limited to 'repo.helpers.go')
| -rw-r--r-- | repo.helpers.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/repo.helpers.go b/repo.helpers.go index 50f3277..3c33583 100644 --- a/repo.helpers.go +++ b/repo.helpers.go @@ -16,20 +16,6 @@ func (all *Repos) DeleteByPath(gopath string) *Repo { return nil } -// find a package by gopath -func (all *Repos) FindByGoPath(gopath string) *Repo { - reposMu.RLock() - defer reposMu.RUnlock() - - for _, p := range all.Repos { - if p.GoPath == gopath { - return p - } - } - - return nil -} - // enforces no duplicate gopath's func (all *Repos) add(newP *Repo) bool { reposMu.Lock() |
