From d71cf27653bfc09738f63cdb975254aff8c6501f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 7 Jan 2025 18:06:41 -0600 Subject: rm old code --- scanIterator.go | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'scanIterator.go') diff --git a/scanIterator.go b/scanIterator.go index c780eae..7ceec67 100644 --- a/scanIterator.go +++ b/scanIterator.go @@ -104,43 +104,3 @@ func (r *RepoList) selectRepoAll() []*RepoRow { return repoPointers } - -/* -// this sort doesn't really work. I think it forgets to sort the last two -// todo: sort this out. literally -// SelectRepoPointers safely returns a slice of pointers to Repo records. -func (r *RepoList) selectUnmergedRepos() []*RepoRow { - r.RLock() - defer r.RUnlock() - - // Create a new slice to hold pointers to each Repo - // repoPointers := make([]*Repo, len(c.E.Repos)) - var repoPointers []*RepoRow - for _, repo := range me.allrepos { - if repo == nil { - continue - } - if repo.Status == nil { - continue - } - if !repo.Status.InitOk { - continue - } - if repo.ReadOnly() { - continue - } - if repo.State() == "PERFECT" { - continue - } - if repo.Status.Whitelist { - continue - } - if repo.Status.IsReleased() { - continue - } - repoPointers = append(repoPointers, repo) // Copy pointers for safe iteration - } - - return repoPointers -} -*/ -- cgit v1.2.3