From cb9089f3e1ecd731767c88ccb7f0a5d0e935a0bb Mon Sep 17 00:00:00 2001 From: Marco Pracucci Date: Fri, 26 Jul 2024 15:53:17 +0200 Subject: [PATCH] Remove dead code Signed-off-by: Marco Pracucci --- pkg/logql/engine.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/logql/engine.go b/pkg/logql/engine.go index 294fe81457de..23c3073fb728 100644 --- a/pkg/logql/engine.go +++ b/pkg/logql/engine.go @@ -5,7 +5,6 @@ import ( "errors" "flag" "fmt" - "math" "sort" "strconv" "strings" @@ -444,11 +443,6 @@ func (q *query) JoinSampleVector(next bool, r StepResult, stepEvaluator StepEval return vec, nil } - stepCount := int(math.Ceil(float64(q.params.End().Sub(q.params.Start()).Nanoseconds()) / float64(q.params.Step().Nanoseconds()))) - if stepCount <= 0 { - stepCount = 1 - } - for next { vec = r.SampleVector() vectorsToSeries(vec, seriesIndex)