forked from TrueCloudLab/restic
repository: remove unused packIDToIndex field
This commit is contained in:
parent
e68c3a4e62
commit
c1a8fa4290
1 changed files with 2 additions and 7 deletions
|
@ -46,8 +46,6 @@ type Index struct {
|
||||||
byType [restic.NumBlobTypes]indexMap
|
byType [restic.NumBlobTypes]indexMap
|
||||||
packs restic.IDs
|
packs restic.IDs
|
||||||
mixedPacks restic.IDSet
|
mixedPacks restic.IDSet
|
||||||
// only used by Store, StorePacks does not check for already saved packIDs
|
|
||||||
packIDToIndex map[restic.ID]int
|
|
||||||
|
|
||||||
final bool // set to true for all indexes read from the backend ("finalized")
|
final bool // set to true for all indexes read from the backend ("finalized")
|
||||||
ids restic.IDs // set to the IDs of the contained finalized indexes
|
ids restic.IDs // set to the IDs of the contained finalized indexes
|
||||||
|
@ -58,7 +56,6 @@ type Index struct {
|
||||||
// NewIndex returns a new index.
|
// NewIndex returns a new index.
|
||||||
func NewIndex() *Index {
|
func NewIndex() *Index {
|
||||||
return &Index{
|
return &Index{
|
||||||
packIDToIndex: make(map[restic.ID]int),
|
|
||||||
mixedPacks: restic.NewIDSet(),
|
mixedPacks: restic.NewIDSet(),
|
||||||
created: time.Now(),
|
created: time.Now(),
|
||||||
}
|
}
|
||||||
|
@ -402,8 +399,6 @@ func (idx *Index) Finalize() {
|
||||||
defer idx.m.Unlock()
|
defer idx.m.Unlock()
|
||||||
|
|
||||||
idx.final = true
|
idx.final = true
|
||||||
// clear packIDToIndex as no more elements will be added
|
|
||||||
idx.packIDToIndex = nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// IDs returns the IDs of the index, if available. If the index is not yet
|
// IDs returns the IDs of the index, if available. If the index is not yet
|
||||||
|
|
Loading…
Reference in a new issue