mirror of
https://github.com/octoleo/restic.git
synced 2024-11-22 21:05:10 +00:00
repository: remove MasterIndex.All()
This commit is contained in:
parent
bf81bf0795
commit
ef53ca4a5a
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user