mirror of
https://github.com/restic/restic.git
synced 2024-12-25 09:18:55 +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"
|
||||
"restic"
|
||||
"restic/backend"
|
||||
"restic/backend/local"
|
||||
"restic/pack"
|
||||
"restic/repository"
|
||||
. "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) {
|
||||
repo, cleanup := createFilledRepo(b, 3, 0)
|
||||
defer cleanup()
|
||||
|
|
Loading…
Reference in a new issue