From e708628cfd42876f4a9f16b575c3bd138a1bfa50 Mon Sep 17 00:00:00 2001 From: Sergio Rubio Date: Wed, 28 Oct 2020 13:24:49 +0100 Subject: [PATCH] Remove unused function Not currently used, and it'd need to be added to the MasterIndex interface first. --- internal/repository/master_index.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/internal/repository/master_index.go b/internal/repository/master_index.go index 6f19a0aad..6e84d3b1b 100644 --- a/internal/repository/master_index.go +++ b/internal/repository/master_index.go @@ -52,22 +52,6 @@ func (mi *MasterIndex) LookupSize(id restic.ID, tpe restic.BlobType) (uint, bool return 0, false } -// ListPack returns the list of blobs in a pack. The first matching index is -// returned, or nil if no index contains information about the pack id. -func (mi *MasterIndex) ListPack(id restic.ID) (list []restic.PackedBlob) { - mi.idxMutex.RLock() - defer mi.idxMutex.RUnlock() - - for _, idx := range mi.idx { - list := idx.ListPack(id) - if len(list) > 0 { - return list - } - } - - return nil -} - // AddPending adds a given blob to list of pending Blobs // Before doing so it checks if this blob is already known. // Returns true if adding was successful and false if the blob