Skip to content

Commit 081e5b3

Browse files
committed
Remove unused code
1 parent 86ff562 commit 081e5b3

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

internal/proto/elastic_reader.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ func (b *ElasticBufReader) ResetBuffer(buf []byte) {
4040
b.err = nil
4141
}
4242

43-
func (b *ElasticBufReader) reset(buf []byte, rd io.Reader) {
44-
*b = ElasticBufReader{
45-
buf: buf,
46-
rd: rd,
47-
}
48-
}
49-
5043
// Buffered returns the number of bytes that can be read from the current buffer.
5144
func (b *ElasticBufReader) Buffered() int {
5245
return b.w - b.r

internal/proto/reader.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ import (
88
"github.com/go-redis/redis/internal/util"
99
)
1010

11-
const bytesAllocLimit = 1024 * 1024 // 1mb
12-
1311
const (
1412
ErrorReply = '-'
1513
StatusReply = '+'

0 commit comments

Comments
 (0)