checker: Remove Load() from test error backend

This commit is contained in:
Alexander Neumann 2017-01-23 17:04:53 +01:00
parent fc235317fe
commit 2bd9c9247c
1 changed files with 0 additions and 9 deletions

View File

@ -209,15 +209,6 @@ type errorBackend struct {
ProduceErrors bool
}
func (b errorBackend) Load(h restic.Handle, p []byte, off int64) (int, error) {
n, err := b.Backend.Load(h, p, off)
if b.ProduceErrors {
induceError(p)
}
return n, err
}
func (b errorBackend) Get(h restic.Handle, length int, offset int64) (io.ReadCloser, error) {
rd, err := b.Backend.Get(h, length, offset)
if err != nil {