mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 23:06:32 +00:00
PackerManager: Remove unused Finalize() method
This commit is contained in:
parent
e8995b85b8
commit
dceaae33ed
@ -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 New Issue
Block a user