forked from mirror/client_golang
metric.go: Remove unused type hashSorter
Fixes: metric.go:130:6: type hashSorter is unused (U1000) Signed-off-by: Karsten Weiss <knweiss@gmail.com>
This commit is contained in:
parent
e01f7ec4fb
commit
587d5265f8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue