forked from TrueCloudLab/restic
repository: remove MasterIndex.All()
This commit is contained in:
parent
bf81bf0795
commit
ef53ca4a5a
1 changed files with 0 additions and 8 deletions
|
@ -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 a new issue