repository: remove unused index.Store

This commit is contained in:
Michael Eischer 2022-05-26 13:41:06 +02:00
parent 628ae799ca
commit fe5a8e137a
4 changed files with 30 additions and 48 deletions

View file

@ -362,13 +362,12 @@ func benchmarkLoadIndex(b *testing.B, version uint) {
idx := repository.NewIndex()
for i := 0; i < 5000; i++ {
idx.Store(restic.PackedBlob{
Blob: restic.Blob{
idx.StorePack(restic.NewRandomID(), []restic.Blob{
{
BlobHandle: restic.NewRandomBlobHandle(),
Length: 1234,
Offset: 1235,
},
PackID: restic.NewRandomID(),
})
}