repo: Remove unused sync.Pool

This commit is contained in:
Alexander Neumann 2017-07-16 20:01:02 +02:00
parent 3f6e11d26e
commit d610c60991
1 changed files with 0 additions and 7 deletions

View File

@ -35,8 +35,6 @@ type packerManager struct {
key *crypto.Key
pm sync.Mutex
packers []*Packer
pool sync.Pool
}
const minPackSize = 4 * 1024 * 1024
@ -49,11 +47,6 @@ func newPackerManager(be Saver, key *crypto.Key) *packerManager {
return &packerManager{
be: be,
key: key,
pool: sync.Pool{
New: func() interface{} {
return make([]byte, (minPackSize+maxPackSize)/2)
},
},
}
}