From ce260b1fe114c600cde83e1c9d426ae51519279e Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Sun, 13 Aug 2023 15:14:53 +0100 Subject: [PATCH] labels: remove some unused code Signed-off-by: Bryan Boreham --- model/labels/labels_stringlabels.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/model/labels/labels_stringlabels.go b/model/labels/labels_stringlabels.go index 223aa6ebf..5e9afe8dc 100644 --- a/model/labels/labels_stringlabels.go +++ b/model/labels/labels_stringlabels.go @@ -49,12 +49,6 @@ type Labels struct { data string } -type labelSlice []Label - -func (ls labelSlice) Len() int { return len(ls) } -func (ls labelSlice) Swap(i, j int) { ls[i], ls[j] = ls[j], ls[i] } -func (ls labelSlice) Less(i, j int) bool { return ls[i].Name < ls[j].Name } - func decodeSize(data string, index int) (int, int) { // Fast-path for common case of a single byte, value 0..127. b := data[index]