From 35d84136395b154a69b9523ee0656a5b0da68f2b Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 13 Jul 2019 18:04:08 +0200 Subject: [PATCH] checker: Remove dead index map --- internal/checker/checker.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/checker/checker.go b/internal/checker/checker.go index 7d1a3a238..642dd963e 100644 --- a/internal/checker/checker.go +++ b/internal/checker/checker.go @@ -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")