From ef53ca4a5a911069ca5326b1e5b49520a1fd21a7 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 5 Jun 2022 21:59:38 +0200 Subject: [PATCH] repository: remove MasterIndex.All() --- internal/repository/master_index.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/internal/repository/master_index.go b/internal/repository/master_index.go index 660fb40aa..43888bf77 100644 --- a/internal/repository/master_index.go +++ b/internal/repository/master_index.go @@ -234,14 +234,6 @@ func (mi *MasterIndex) FinalizeFullIndexes() []*Index { return list } -// All returns all indexes. -func (mi *MasterIndex) All() []*Index { - mi.idxMutex.Lock() - defer mi.idxMutex.Unlock() - - return mi.idx -} - // Each returns a channel that yields all blobs known to the index. When the // context is cancelled, the background goroutine terminates. This blocks any // modification of the index.