diff --git a/internal/repository/repository.go b/internal/repository/repository.go index f80eb9c99..534edc9fd 100644 --- a/internal/repository/repository.go +++ b/internal/repository/repository.go @@ -579,11 +579,6 @@ func (r *Repository) flushPacks(ctx context.Context) error { return err } -// Backend returns the backend for the repository. -func (r *Repository) Backend() backend.Backend { - return r.be -} - func (r *Repository) Connections() uint { return r.be.Connections() } diff --git a/internal/restic/repository.go b/internal/restic/repository.go index 89a6c3ca0..e386630a3 100644 --- a/internal/restic/repository.go +++ b/internal/restic/repository.go @@ -16,9 +16,6 @@ var ErrInvalidData = errors.New("invalid data returned") // Repository stores data in a backend. It provides high-level functions and // transparently encrypts/decrypts data. type Repository interface { - - // Backend returns the backend used by the repository - Backend() backend.Backend // Connections returns the maximum number of concurrent backend operations Connections() uint