checker: Remove dead index map

This commit is contained in:
Michael Eischer 2019-07-13 18:04:08 +02:00
parent c66a0e408c
commit 35d8413639
1 changed files with 0 additions and 3 deletions

View File

@ -27,7 +27,6 @@ type Checker struct {
sync.Mutex
M map[restic.ID]bool
}
indexes map[restic.ID]*repository.Index
masterIndex *repository.MasterIndex
@ -40,7 +39,6 @@ func New(repo restic.Repository) *Checker {
packs: restic.NewIDSet(),
blobs: restic.NewIDSet(),
masterIndex: repository.NewMasterIndex(),
indexes: make(map[restic.ID]*repository.Index),
repo: repo,
}
@ -152,7 +150,6 @@ func (c *Checker) LoadIndex(ctx context.Context) (hints []error, errs []error) {
continue
}
c.indexes[res.ID] = res.Index
c.masterIndex.Insert(res.Index)
debug.Log("process blobs")