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