forked from TrueCloudLab/restic
PackerManager: Remove unused Finalize() method
This commit is contained in:
parent
e8995b85b8
commit
dceaae33ed
1 changed files with 0 additions and 14 deletions
|
@ -29,20 +29,6 @@ type Packer struct {
|
||||||
tmpfile *os.File
|
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.
|
// packerManager keeps a list of open packs and creates new on demand.
|
||||||
type packerManager struct {
|
type packerManager struct {
|
||||||
be Saver
|
be Saver
|
||||||
|
|
Loading…
Reference in a new issue