mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
Remove unused utility function StringInSplice.
This commit is contained in:
@@ -176,16 +176,6 @@ func (mf *kustomizationFile) Write(kustomization *types.Kustomization) error {
|
|||||||
return mf.fSys.WriteFile(mf.path, data)
|
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 {
|
func (mf *kustomizationFile) parseCommentedFields(content []byte) error {
|
||||||
buffer := bytes.NewBuffer(content)
|
buffer := bytes.NewBuffer(content)
|
||||||
var comments [][]byte
|
var comments [][]byte
|
||||||
|
|||||||
Reference in New Issue
Block a user