From c155d508a061f6431b881b93907729bbf6ef2b5f Mon Sep 17 00:00:00 2001 From: Mihail Stoykov Date: Thu, 5 Sep 2024 17:05:29 +0300 Subject: [PATCH] fixup! usage: refactor to do levels earlier --- usage/usage.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/usage/usage.go b/usage/usage.go index 7d75cb07017e..78d2539b30c6 100644 --- a/usage/usage.go +++ b/usage/usage.go @@ -107,12 +107,3 @@ func deepClone(m map[string]any) map[string]any { } return result } - -// TODO: replace with map.Keys from go 1.23 after that is the minimal version -func mapKeys(m map[string]any) []string { - keys := make([]string, 0, len(m)) - for k := range m { - keys = append(keys, k) - } - return keys -}