mirror of
https://github.com/restic/restic.git
synced 2025-12-12 06:32:06 +00:00
backend: remove unused Location method
This commit is contained in:
@@ -46,11 +46,6 @@ func (be *Backend) Connections() uint {
|
||||
return be.b.Connections()
|
||||
}
|
||||
|
||||
// Location returns the location of the backend.
|
||||
func (be *Backend) Location() string {
|
||||
return "DRY:" + be.b.Location()
|
||||
}
|
||||
|
||||
// Delete removes all data in the backend.
|
||||
func (be *Backend) Delete(_ context.Context) error {
|
||||
return nil
|
||||
|
||||
@@ -36,7 +36,6 @@ func TestDry(t *testing.T) {
|
||||
content string
|
||||
wantErr string
|
||||
}{
|
||||
{d, "loc", "", "DRY:RAM", ""},
|
||||
{d, "delete", "", "", ""},
|
||||
{d, "stat", "a", "", "not found"},
|
||||
{d, "list", "", "", ""},
|
||||
@@ -76,11 +75,6 @@ func TestDry(t *testing.T) {
|
||||
if files != step.content {
|
||||
t.Errorf("%d. List = %q, want %q", i, files, step.content)
|
||||
}
|
||||
case "loc":
|
||||
loc := step.be.Location()
|
||||
if loc != step.content {
|
||||
t.Errorf("%d. Location = %q, want %q", i, loc, step.content)
|
||||
}
|
||||
case "delete":
|
||||
err = step.be.Delete(ctx)
|
||||
case "remove":
|
||||
|
||||
Reference in New Issue
Block a user