From 8ebf0b7750fa332f7d816779393950dbc958bfe6 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Mon, 13 Aug 2018 09:52:36 +0300 Subject: [PATCH] Remove unused code --- internal/proto/elastic_reader.go | 7 ------- internal/proto/reader.go | 2 -- 2 files changed, 9 deletions(-) diff --git a/internal/proto/elastic_reader.go b/internal/proto/elastic_reader.go index 20eca64..ce9ea3d 100644 --- a/internal/proto/elastic_reader.go +++ b/internal/proto/elastic_reader.go @@ -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 diff --git a/internal/proto/reader.go b/internal/proto/reader.go index 49890d4..e4a84f1 100644 --- a/internal/proto/reader.go +++ b/internal/proto/reader.go @@ -8,8 +8,6 @@ import ( "github.com/go-redis/redis/internal/util" ) -const bytesAllocLimit = 1024 * 1024 // 1mb - const ( ErrorReply = '-' StatusReply = '+'