From 43b0f2d925cff9c195a29b269bd8899ea47e94bd Mon Sep 17 00:00:00 2001 From: Eyob Tefera Date: Sat, 1 Aug 2020 18:45:44 +0000 Subject: [PATCH] Remove unused utility function StringInSplice. --- .../internal/commands/kustfile/kustomizationfile.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/kustomize/internal/commands/kustfile/kustomizationfile.go b/kustomize/internal/commands/kustfile/kustomizationfile.go index b7b34f99e..2e98f126c 100644 --- a/kustomize/internal/commands/kustfile/kustomizationfile.go +++ b/kustomize/internal/commands/kustfile/kustomizationfile.go @@ -176,16 +176,6 @@ func (mf *kustomizationFile) Write(kustomization *types.Kustomization) error { return mf.fSys.WriteFile(mf.path, data) } -// StringInSlice returns true if the string is in the slice. -func StringInSlice(str string, list []string) bool { - for _, v := range list { - if v == str { - return true - } - } - return false -} - func (mf *kustomizationFile) parseCommentedFields(content []byte) error { buffer := bytes.NewBuffer(content) var comments [][]byte