mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 00:23:18 +00:00
Remove unused NewReader function (#547)
The `NewReader` function is not used anywhere.
This commit is contained in:
parent
84e51f7222
commit
b7cac504c9
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user