Remove unused (so far) func

This commit is contained in:
Dan Buch 2016-05-22 10:59:42 -04:00
parent 81fcf706ea
commit 334e66cb8f
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC

10
flag.go
View File

@ -717,13 +717,3 @@ func stringifySliceFlag(usage string, names, defaultVals []string) string {
usageWithDefault := strings.TrimSpace(fmt.Sprintf("%s%s", usage, defaultVal)) usageWithDefault := strings.TrimSpace(fmt.Sprintf("%s%s", usage, defaultVal))
return fmt.Sprintf("%s\t%s", prefixedNames(names, placeholder), usageWithDefault) 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
}