Skip to content

Commit 8ebf0b7

Browse files
committed
Remove unused code
1 parent 33287c7 commit 8ebf0b7

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

Diff for: internal/proto/elastic_reader.go

-7
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

Diff for: internal/proto/reader.go

-2
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)