From 334e66cb8f24be3190fded4ad5952a07244fbc8b Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sun, 22 May 2016 10:59:42 -0400 Subject: [PATCH] Remove unused (so far) func --- flag.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/flag.go b/flag.go index ba55471..067e9ee 100644 --- a/flag.go +++ b/flag.go @@ -717,13 +717,3 @@ func stringifySliceFlag(usage string, names, defaultVals []string) string { usageWithDefault := strings.TrimSpace(fmt.Sprintf("%s%s", usage, defaultVal)) return fmt.Sprintf("%s\t%s", prefixedNames(names, placeholder), usageWithDefault) } - -func hasFlag(flags []Flag, fl Flag) bool { - for _, existing := range flags { - if fl == existing { - return true - } - } - - return false -}