mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08: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
|
## master / unreleased
|
||||||
|
- [REMOVED] `chunks.NewReader` is removed as it wasn't used anywhere.
|
||||||
- [REMOVED] `FromData` is considered unused so was removed.
|
- [REMOVED] `FromData` is considered unused so was removed.
|
||||||
|
|
||||||
## 0.6.1
|
## 0.6.1
|
||||||
|
|
|
@ -386,14 +386,6 @@ func newReader(bs []ByteSlice, cs []io.Closer, pool chunkenc.Pool) (*Reader, err
|
||||||
return &cr, nil
|
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
|
// NewDirReader returns a new Reader against sequentially numbered files in the
|
||||||
// given directory.
|
// given directory.
|
||||||
func NewDirReader(dir string, pool chunkenc.Pool) (*Reader, error) {
|
func NewDirReader(dir string, pool chunkenc.Pool) (*Reader, error) {
|
||||||
|
|
Loading…
Reference in a new issue