Remove unused NewReader function (#547)

The `NewReader` function is not used anywhere.
This commit is contained in:
zhulongcheng 2019-03-14 21:05:40 +08:00 committed by Krasi Georgiev
parent 84e51f7222
commit b7cac504c9
2 changed files with 1 additions and 8 deletions

View File

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

View File

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