From 587d5265f8b17553255e1b0b72bd81e783c1cf83 Mon Sep 17 00:00:00 2001 From: Karsten Weiss Date: Fri, 13 Apr 2018 22:18:53 +0200 Subject: [PATCH] metric.go: Remove unused type hashSorter Fixes: metric.go:130:6: type hashSorter is unused (U1000) Signed-off-by: Karsten Weiss --- prometheus/metric.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/prometheus/metric.go b/prometheus/metric.go index 6213ee8..76035bc 100644 --- a/prometheus/metric.go +++ b/prometheus/metric.go @@ -127,20 +127,6 @@ func (s LabelPairSorter) Less(i, j int) bool { return s[i].GetName() < s[j].GetName() } -type hashSorter []uint64 - -func (s hashSorter) Len() int { - return len(s) -} - -func (s hashSorter) Swap(i, j int) { - s[i], s[j] = s[j], s[i] -} - -func (s hashSorter) Less(i, j int) bool { - return s[i] < s[j] -} - type invalidMetric struct { desc *Desc err error