mirror of
https://github.com/restic/restic.git
synced 2025-10-09 07:33:53 +00:00
backend: move backend implementation helpers to util package
This removes code that is only used within a backend implementation from the backend package. The latter now only contains code that also has external users.
This commit is contained in:
@@ -11,9 +11,9 @@ import (
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
"github.com/restic/restic/internal/backend"
|
||||
"github.com/restic/restic/internal/backend/layout"
|
||||
"github.com/restic/restic/internal/backend/location"
|
||||
"github.com/restic/restic/internal/backend/util"
|
||||
"github.com/restic/restic/internal/debug"
|
||||
"github.com/restic/restic/internal/errors"
|
||||
"github.com/restic/restic/internal/restic"
|
||||
@@ -424,5 +424,5 @@ func (b *Backend) Close() error {
|
||||
|
||||
// Delete removes all data in the backend.
|
||||
func (b *Backend) Delete(ctx context.Context) error {
|
||||
return backend.DefaultDelete(ctx, b)
|
||||
return util.DefaultDelete(ctx, b)
|
||||
}
|
||||
|
Reference in New Issue
Block a user