1
0
mirror of https://github.com/restic/restic.git synced 2024-06-30 08:20:55 +02:00

PackerManager: Remove unused Finalize() method

This commit is contained in:
Alexander Neumann 2017-01-25 17:08:20 +01:00
parent e8995b85b8
commit dceaae33ed

View File

@ -29,20 +29,6 @@ type Packer struct {
tmpfile *os.File
}
// Finalize finalizes the pack.Packer and then closes the tempfile.
func (p *Packer) Finalize() (uint, error) {
n, err := p.Packer.Finalize()
if err != nil {
return n, err
}
if err = p.tmpfile.Close(); err != nil {
return n, err
}
return n, nil
}
// packerManager keeps a list of open packs and creates new on demand.
type packerManager struct {
be Saver