summaryrefslogtreecommitdiff
path: root/scanIterator.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-07 18:06:41 -0600
committerJeff Carr <[email protected]>2025-01-07 18:06:41 -0600
commitd71cf27653bfc09738f63cdb975254aff8c6501f (patch)
tree15168cb79890714a68e732dbe95e6f6bf9900fa1 /scanIterator.go
parent0fac12c31e11fc6394bdfd4ecc29991c63397a29 (diff)
rm old code
Diffstat (limited to 'scanIterator.go')
-rw-r--r--scanIterator.go40
1 files changed, 0 insertions, 40 deletions
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
-}
-*/