From 73ad3d418d49ba12c219a3063a0164a6bec0f5bc Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Tue, 17 Jan 2017 12:46:41 +0100 Subject: [PATCH] Index: Remove unneeded allocation --- src/restic/index/index.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/restic/index/index.go b/src/restic/index/index.go index 7d8b72836..6a122e67a 100644 --- a/src/restic/index/index.go +++ b/src/restic/index/index.go @@ -62,9 +62,6 @@ func New(repo restic.Repository, p *restic.Progress) (*Index, error) { if err != nil { return nil, err } - - p := Pack{ID: packID, Entries: j.Entries(), Size: j.Size()} - idx.Packs[packID] = p } return idx, nil