Remove dead code.

This commit is contained in:
Brian Brazil 2017-04-20 13:45:07 +01:00
parent d04bd947ea
commit 72443bddfc

13
head.go
View file

@ -423,23 +423,12 @@ func (a *headAppender) Commit() error {
return err return err
} }
var ( total := uint64(len(a.samples))
total = uint64(len(a.samples))
mint = int64(math.MaxInt64)
maxt = int64(math.MinInt64)
)
for _, s := range a.samples { for _, s := range a.samples {
if !a.series[s.ref].append(s.t, s.v) { if !a.series[s.ref].append(s.t, s.v) {
total-- total--
} }
if s.t < mint {
mint = s.t
}
if s.t > maxt {
maxt = s.t
}
} }
a.mtx.RUnlock() a.mtx.RUnlock()