From 72443bddfca18d0ba13bffbca6b73f53fee6e078 Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Thu, 20 Apr 2017 13:45:07 +0100 Subject: [PATCH] Remove dead code. --- head.go | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/head.go b/head.go index 5818dbbe4..b350af799 100644 --- a/head.go +++ b/head.go @@ -423,23 +423,12 @@ func (a *headAppender) Commit() error { return err } - var ( - total = uint64(len(a.samples)) - mint = int64(math.MaxInt64) - maxt = int64(math.MinInt64) - ) + total := uint64(len(a.samples)) for _, s := range a.samples { if !a.series[s.ref].append(s.t, s.v) { total-- } - - if s.t < mint { - mint = s.t - } - if s.t > maxt { - maxt = s.t - } } a.mtx.RUnlock()