diff --git a/internal/orderedmap/orderedmap.go b/internal/orderedmap/orderedmap.go index f34ad9251f..661453b0a7 100644 --- a/internal/orderedmap/orderedmap.go +++ b/internal/orderedmap/orderedmap.go @@ -89,11 +89,6 @@ func (om *OrderedMap[K, V]) Sort() { slices.Sort(om.s) } -// SortFunc will sort the map using the given function. -func (om *OrderedMap[K, V]) SortFunc(less func(i, j K) bool) { - slices.SortFunc(om.s, less) -} - // Keys will return a slice of the map's keys in order. func (om *OrderedMap[K, V]) Keys() []K { return om.s diff --git a/internal/orderedmap/orderedmap_test.go b/internal/orderedmap/orderedmap_test.go index 374b34da82..4986740a24 100644 --- a/internal/orderedmap/orderedmap_test.go +++ b/internal/orderedmap/orderedmap_test.go @@ -37,17 +37,6 @@ func TestSort(t *testing.T) { assert.Equal(t, []int{1, 2, 3}, om.s) } -func TestSortFunc(t *testing.T) { - om := New[int, string]() - om.Set(3, "three") - om.Set(1, "one") - om.Set(2, "two") - om.SortFunc(func(i, j int) bool { - return i > j - }) - assert.Equal(t, []int{3, 2, 1}, om.s) -} - func TestKeysValues(t *testing.T) { om := New[int, string]() om.Set(3, "three")