From ae70046b49ad1aa211be32321fcc87ad8934473e Mon Sep 17 00:00:00 2001 From: greatroar <61184462+greatroar@users.noreply.github.com> Date: Sun, 7 Nov 2021 10:00:23 +0100 Subject: [PATCH] lib/protocol: Remove unused sorting boilerplate --- lib/protocol/deviceid.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/protocol/deviceid.go b/lib/protocol/deviceid.go index 7dd6efaf3..11ee13c51 100644 --- a/lib/protocol/deviceid.go +++ b/lib/protocol/deviceid.go @@ -214,18 +214,3 @@ func untypeoify(s string) string { s = strings.ReplaceAll(s, "8", "B") return s } - -// DeviceIDs is a sortable slice of DeviceID -type DeviceIDs []DeviceID - -func (l DeviceIDs) Len() int { - return len(l) -} - -func (l DeviceIDs) Less(a, b int) bool { - return l[a].Compare(l[b]) == -1 -} - -func (l DeviceIDs) Swap(a, b int) { - l[a], l[b] = l[b], l[a] -}