From ec7c9ce88b01240615c4c0c05c4f2766f901b0b0 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 12 Jun 2022 14:23:14 +0200 Subject: [PATCH] drop unused repository.Loader interface --- internal/repository/repository.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/repository/repository.go b/internal/repository/repository.go index cab0dda83..1312ea754 100644 --- a/internal/repository/repository.go +++ b/internal/repository/repository.go @@ -871,11 +871,6 @@ func (r *Repository) SaveTree(ctx context.Context, t *restic.Tree) (restic.ID, e return id, err } -// Loader allows loading data from a backend. -type Loader interface { - Load(ctx context.Context, h restic.Handle, length int, offset int64, fn func(rd io.Reader) error) error -} - type BackendLoadFn func(ctx context.Context, h restic.Handle, length int, offset int64, fn func(rd io.Reader) error) error // StreamPack loads the listed blobs from the specified pack file. The plaintext blob is passed to