mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
kill unused listSeriesSet code
Signed-off-by: bwplotka <bwplotka@gmail.com>
This commit is contained in:
parent
11f6a266e8
commit
df0a4f9c42
1 changed files with 0 additions and 29 deletions
|
|
@ -22,7 +22,6 @@ import (
|
|||
"github.com/prometheus/prometheus/model/labels"
|
||||
"github.com/prometheus/prometheus/tsdb/chunkenc"
|
||||
"github.com/prometheus/prometheus/tsdb/chunks"
|
||||
"github.com/prometheus/prometheus/util/annotations"
|
||||
)
|
||||
|
||||
type SeriesEntry struct {
|
||||
|
|
@ -226,34 +225,6 @@ func (it *listChunkSeriesIterator) Next() bool {
|
|||
|
||||
func (*listChunkSeriesIterator) Err() error { return nil }
|
||||
|
||||
type listSeriesSet struct {
|
||||
series []Series
|
||||
|
||||
curr int
|
||||
}
|
||||
|
||||
// NewListSeriesSet lists []storage.Series as SeriesSet.
|
||||
func NewListSeriesSet(series []Series) SeriesSet {
|
||||
return &listSeriesSet{series: series, curr: -1}
|
||||
}
|
||||
|
||||
func (s *listSeriesSet) Next() bool {
|
||||
if s.curr >= len(s.series)-1 {
|
||||
return false
|
||||
}
|
||||
s.curr++
|
||||
return true
|
||||
}
|
||||
|
||||
func (s *listSeriesSet) At() Series {
|
||||
// Series composed of same chunks for the same series.
|
||||
return s.series[s.curr]
|
||||
}
|
||||
|
||||
func (listSeriesSet) Err() error { return nil }
|
||||
|
||||
func (listSeriesSet) Warnings() annotations.Annotations { return nil }
|
||||
|
||||
type chunkSetToSeriesSet struct {
|
||||
ChunkSeriesSet
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue