remove unused GetFlagInt32 func

pull/6/head
juanvallejo 2016-09-30 10:00:59 -04:00
parent 395f6fda81
commit 7d1461be8e
1 changed files with 0 additions and 9 deletions

View File

@ -354,15 +354,6 @@ func GetFlagInt64(cmd *cobra.Command, flag string) int64 {
return i
}
// Assumes the flag has a default value.
func GetFlagInt32(cmd *cobra.Command, flag string) int32 {
i, err := cmd.Flags().GetInt32(flag)
if err != nil {
glog.Fatalf("error accessing flag %s for command %s: %v", flag, cmd.Name(), err)
}
return i
}
func GetFlagDuration(cmd *cobra.Command, flag string) time.Duration {
d, err := cmd.Flags().GetDuration(flag)
if err != nil {