Remove global method from Int64Slice Flag

This commit is contained in:
Ajitem Sahasrabuddhe 2019-09-16 12:17:30 +05:30
parent a9d5b68df5
commit f12b8ca4e5
No known key found for this signature in database
GPG Key ID: 5B0EE10DAA76876C

View File

@ -148,15 +148,6 @@ func (c *Context) Int64Slice(name string) []int64 {
return lookupInt64Slice(name, c.flagSet) return lookupInt64Slice(name, c.flagSet)
} }
// GlobalInt64Slice looks up the value of a global Int64SliceFlag, returns
// nil if not found
func (c *Context) GlobalInt64Slice(name string) []int64 {
if fs := lookupGlobalFlagSet(name, c); fs != nil {
return lookupInt64Slice(name, fs)
}
return nil
}
func lookupInt64Slice(name string, set *flag.FlagSet) []int64 { func lookupInt64Slice(name string, set *flag.FlagSet) []int64 {
f := set.Lookup(name) f := set.Lookup(name)
if f != nil { if f != nil {