From 91c1299e2d42ef9a9ce6f0a2af31ac44e1c8da11 Mon Sep 17 00:00:00 2001 From: Kimmo Lehto Date: Thu, 26 Sep 2024 16:00:43 +0300 Subject: [PATCH] Remove unused prepareEnvVars function There are no references to this function. The linter catches is as unused. Signed-off-by: Kimmo Lehto (cherry picked from commit 416c9ffe9cfc9308a1eafd1ccd4393ed171e6da9) --- pkg/install/service.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pkg/install/service.go b/pkg/install/service.go index 7ff58b9241a0..42c4cf13e5ca 100644 --- a/pkg/install/service.go +++ b/pkg/install/service.go @@ -19,7 +19,6 @@ package install import ( "errors" "fmt" - "strings" "github.com/kardianos/service" "github.com/sirupsen/logrus" @@ -159,16 +158,3 @@ func GetServiceConfig(role string) *service.Config { Description: k0sDescription, } } - -func prepareEnvVars(envVars []string) map[string]string { - result := make(map[string]string) - for _, envVar := range envVars { - parts := strings.SplitN(envVar, "=", 1) - if len(parts) != 2 { - continue - } - - result[parts[0]] = parts[1] - } - return result -}