From 4a79cccffd6cd20e42271eada567c4b8c0edc2f4 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 29 Nov 2024 18:15:25 -0600 Subject: attempt to use go.wit.com/apps/autogenpb for sort --- repo.helpers.go | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'repo.helpers.go') 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() -- cgit v1.2.3