From df0a4f9c42dafb3e5af81e47d119e59870bd32b5 Mon Sep 17 00:00:00 2001 From: bwplotka Date: Tue, 16 Dec 2025 14:14:15 +0000 Subject: [PATCH] kill unused listSeriesSet code Signed-off-by: bwplotka --- storage/series.go | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/storage/series.go b/storage/series.go index 43c519e38d..2fff56785a 100644 --- a/storage/series.go +++ b/storage/series.go @@ -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