diff --git a/server/etcdmain/config.go b/server/etcdmain/config.go index 82ea97a939d..5955d8b772b 100644 --- a/server/etcdmain/config.go +++ b/server/etcdmain/config.go @@ -182,20 +182,6 @@ func (cfg *config) parse(arguments []string) error { return perr } - var warningsForDeprecatedFlags []string - cfg.cf.flagSet.Visit(func(f *flag.Flag) { - if msg, ok := deprecatedFlags[f.Name]; ok { - warningsForDeprecatedFlags = append(warningsForDeprecatedFlags, msg) - } - }) - if len(warningsForDeprecatedFlags) > 0 { - if lg := cfg.ec.GetLogger(); lg != nil { - for _, msg := range warningsForDeprecatedFlags { - lg.Warn(msg) - } - } - } - // now logger is set up return err }