Remove unused code

This commit is contained in:
Vladimir Mihailenco 2018-08-13 09:52:36 +03:00
parent 33287c7c34
commit 8ebf0b7750
2 changed files with 0 additions and 9 deletions

View File

@ -40,13 +40,6 @@ func (b *ElasticBufReader) ResetBuffer(buf []byte) {
b.err = nil
}
func (b *ElasticBufReader) reset(buf []byte, rd io.Reader) {
*b = ElasticBufReader{
buf: buf,
rd: rd,
}
}
// Buffered returns the number of bytes that can be read from the current buffer.
func (b *ElasticBufReader) Buffered() int {
return b.w - b.r

View File

@ -8,8 +8,6 @@ import (
"github.com/go-redis/redis/internal/util"
)
const bytesAllocLimit = 1024 * 1024 // 1mb
const (
ErrorReply = '-'
StatusReply = '+'