From ac8fe07ea314cd95e660d24c5f4a36f63a2fbc28 Mon Sep 17 00:00:00 2001 From: davis-haba Date: Thu, 20 Jan 2022 05:54:30 -0800 Subject: [PATCH] Remove unused helper func getModules from client.drivers.local Signed-off-by: davis-haba --- .../pkg/client/drivers/local/local_unit_test.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/constraint/pkg/client/drivers/local/local_unit_test.go b/constraint/pkg/client/drivers/local/local_unit_test.go index 71cdf74cb..057679891 100644 --- a/constraint/pkg/client/drivers/local/local_unit_test.go +++ b/constraint/pkg/client/drivers/local/local_unit_test.go @@ -807,19 +807,6 @@ func TestDriver_DeleteData_StorageErrors(t *testing.T) { } } -func getModules(dr *Driver) []string { - result := make([]string, len(dr.modules)) - - idx := 0 - for module := range dr.modules { - result[idx] = module - idx++ - } - - sort.Strings(result) - return result -} - type fakeStorage struct { storage.Store