mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-22 06:47:00 +00:00
Merge pull request #5681 from emirot/remove-string-in-slice
chore: remove unused function
This commit is contained in:
@@ -329,15 +329,6 @@ func setPlaceholderValue(varName string, files []string, fSys filesys.FileSystem
|
||||
return nil
|
||||
}
|
||||
|
||||
func stringInSlice(elem string, slice []string) bool {
|
||||
for i := range slice {
|
||||
if slice[i] == elem {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func indexOf(varName string, slice []string) int {
|
||||
for i := range slice {
|
||||
if slice[i] == varName {
|
||||
|
||||
Reference in New Issue
Block a user