Skip to content

Commit

Permalink
SQUASHME removed commented-out debug code as per pull-request feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
  • Loading branch information
ifedorenko committed Feb 13, 2020
1 parent 5fa9eb0 commit 430e058
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions internal/restorer/filerestorer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ func (i *TestRepo) packID(name string) restic.ID {
return i.packsNameToID[name]
}

// func (i *TestRepo) pack(queue *packQueue, name string) *packInfo {
// id := i.packsNameToID[name]
// return queue.packs[id]
// }

func (i *TestRepo) fileContent(file *fileInfo) string {
return i.filesPathToContent[file.location]
}
Expand Down
2 changes: 0 additions & 2 deletions internal/restorer/fileswriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,9 @@ func (w *filesWriter) writeToFile(path string, blob []byte, offset int64, create
return err
}

// fmt.Printf("write %s offset %d len %d '%s'\n", file.location, offset, len(data), string(data))
_, err = wr.WriteAt(blob, offset)

if err != nil {
// fmt.Printf("error %s %v\n", file.location, err)
releaseWriter(wr)
return err
}
Expand Down

0 comments on commit 430e058

Please sign in to comment.