From 30d77ab2d8863e4b3a8b434b36f44668c70a44f3 Mon Sep 17 00:00:00 2001 From: Marco Vito Moscaritolo Date: Wed, 15 Aug 2018 22:59:27 +0200 Subject: [PATCH] remove unused utils --- cmd/util.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/cmd/util.go b/cmd/util.go index 51df07a5..47494ade 100644 --- a/cmd/util.go +++ b/cmd/util.go @@ -11,21 +11,6 @@ func randomName() string { return fmt.Sprintf("%s-%s%s", randomdata.Adjective(), randomdata.Noun(), randomdata.Adjective()) } -//Index find the index of an element int the array -func Index(vs []string, t string) int { - for i, v := range vs { - if v == t { - return i - } - } - return -1 -} - -//Include indicate if a string is in the strinc array -func Include(vs []string, t string) bool { - return Index(vs, t) >= 0 -} - //FatalOnError is an helper function to transform error to fatl func FatalOnError(err error) { if err != nil {