mirror of
https://github.com/octoleo/restic.git
synced 2024-11-27 07:16:40 +00:00
Remove dead code
This commit is contained in:
parent
f0d7f3f1bd
commit
79e950b710
@ -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 New Issue
Block a user