Commit 9a423a77 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse: remove gcBufferPool

parent 2f50caab
...@@ -9,8 +9,6 @@ import ( ...@@ -9,8 +9,6 @@ import (
"sync" "sync"
) )
var paranoia bool
// BufferPool implements explicit memory management. It is used for // BufferPool implements explicit memory management. It is used for
// minimizing the GC overhead of communicating with the kernel. // minimizing the GC overhead of communicating with the kernel.
type BufferPool interface { type BufferPool interface {
...@@ -24,21 +22,6 @@ type BufferPool interface { ...@@ -24,21 +22,6 @@ type BufferPool interface {
FreeBuffer(slice []byte) FreeBuffer(slice []byte)
} }
type gcBufferPool struct {
}
// NewGcBufferPool is a fallback to the standard allocation routines.
func NewGcBufferPool() BufferPool {
return &gcBufferPool{}
}
func (p *gcBufferPool) AllocBuffer(size uint32) []byte {
return make([]byte, size)
}
func (p *gcBufferPool) FreeBuffer(slice []byte) {
}
type bufferPoolImpl struct { type bufferPoolImpl struct {
lock sync.Mutex lock sync.Mutex
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment