1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-11-01 13:57:15 -04:00

remove unused APIs.

This commit is contained in:
Darien Raymond
2016-12-08 16:50:40 +01:00
parent 41258f19fc
commit 605fc49e9e
5 changed files with 12 additions and 67 deletions

View File

@@ -84,11 +84,8 @@ func (p *BufferPool) Free(buffer *Buffer) {
}
const (
mediumBufferByteSize = 8 * 1024
BufferSize = mediumBufferByteSize - defaultOffset
smallBufferByteSize = 2 * 1024
SmallBufferSize = smallBufferByteSize - defaultOffset
BufferSize = 8 * 1024
SmallBufferSize = 2 * 1024
PoolSizeEnvKey = "v2ray.buffer.size"
)
@@ -109,8 +106,8 @@ func init() {
}
if size > 0 {
totalByteSize := size * 1024 * 1024
mediumPool = NewBufferPool(mediumBufferByteSize, totalByteSize/mediumBufferByteSize)
mediumPool = NewBufferPool(BufferSize, totalByteSize/BufferSize)
} else {
mediumPool = NewSyncPool(mediumBufferByteSize)
mediumPool = NewSyncPool(BufferSize)
}
}