From b7cac504c9210ceb533852707908da919d4df5f2 Mon Sep 17 00:00:00 2001 From: zhulongcheng Date: Thu, 14 Mar 2019 21:05:40 +0800 Subject: [PATCH] Remove unused NewReader function (#547) The `NewReader` function is not used anywhere. --- CHANGELOG.md | 1 + chunks/chunks.go | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11b841344..f7dbb7b88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,5 @@ ## master / unreleased + - [REMOVED] `chunks.NewReader` is removed as it wasn't used anywhere. - [REMOVED] `FromData` is considered unused so was removed. ## 0.6.1 diff --git a/chunks/chunks.go b/chunks/chunks.go index dd5a5f8c2..07e0be803 100644 --- a/chunks/chunks.go +++ b/chunks/chunks.go @@ -386,14 +386,6 @@ func newReader(bs []ByteSlice, cs []io.Closer, pool chunkenc.Pool) (*Reader, err return &cr, nil } -// NewReader returns a new chunk reader against the given byte slices. -func NewReader(bs []ByteSlice, pool chunkenc.Pool) (*Reader, error) { - if pool == nil { - pool = chunkenc.NewPool() - } - return newReader(bs, nil, pool) -} - // NewDirReader returns a new Reader against sequentially numbered files in the // given directory. func NewDirReader(dir string, pool chunkenc.Pool) (*Reader, error) {