summaryrefslogtreecommitdiff
path: root/scanIterator.go
diff options
context:
space:
mode:
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
-}
-*/