mirror of
https://github.com/restic/restic.git
synced 2024-12-26 01:37:12 +00:00
Remove dead code
This commit is contained in:
parent
f0d7f3f1bd
commit
79e950b710
1 changed files with 0 additions and 16 deletions
|
@ -4,7 +4,6 @@ import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"restic"
|
"restic"
|
||||||
"restic/backend"
|
"restic/backend"
|
||||||
"restic/backend/local"
|
|
||||||
"restic/pack"
|
"restic/pack"
|
||||||
"restic/repository"
|
"restic/repository"
|
||||||
. "restic/test"
|
. "restic/test"
|
||||||
|
@ -124,21 +123,6 @@ func TestIndexLoad(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func openRepo(t testing.TB, dir, password string) *repository.Repository {
|
|
||||||
b, err := local.Open(dir)
|
|
||||||
if err != nil {
|
|
||||||
t.Fatalf("open backend %v failed: %v", dir, err)
|
|
||||||
}
|
|
||||||
|
|
||||||
r := repository.New(b)
|
|
||||||
err = r.SearchKey(password)
|
|
||||||
if err != nil {
|
|
||||||
t.Fatalf("unable to open repo with password: %v", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
return r
|
|
||||||
}
|
|
||||||
|
|
||||||
func BenchmarkIndexNew(b *testing.B) {
|
func BenchmarkIndexNew(b *testing.B) {
|
||||||
repo, cleanup := createFilledRepo(b, 3, 0)
|
repo, cleanup := createFilledRepo(b, 3, 0)
|
||||||
defer cleanup()
|
defer cleanup()
|
||||||
|
|
Loading…
Reference in a new issue