Remove unused utility function StringInSplice.

This commit is contained in:
Eyob Tefera
2020-08-01 18:45:44 +00:00
parent efd5f414a8
commit 43b0f2d925

View File

@@ -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