From b65d6797cdaccd054dbc16f4547ced3f3f58aee3 Mon Sep 17 00:00:00 2001 From: poornas Date: Tue, 25 Feb 2020 21:26:49 -0800 Subject: [PATCH] retention - cleanup unused code (#3094) --- cmd/retention-main.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cmd/retention-main.go b/cmd/retention-main.go index 84683b2b..c6c65051 100644 --- a/cmd/retention-main.go +++ b/cmd/retention-main.go @@ -180,14 +180,6 @@ func mainRetention(ctx *cli.Context) error { console.SetColor("RetentionSuccess", color.New(color.FgGreen, color.Bold)) console.SetColor("RetentionPartialFailure", color.New(color.FgRed, color.Bold)) console.SetColor("RetentionMessageFailure", color.New(color.FgYellow)) - - // Parse encryption keys per command. - _, err := getEncKeys(ctx) - fatalIf(err, "Unable to parse encryption keys.") - - // lock specific flags. - clearLock := ctx.Bool("clear") - args := ctx.Args() var urlStr string @@ -198,10 +190,6 @@ func mainRetention(ctx *cli.Context) error { switch l := len(args); l { case 3: urlStr = args[0] - if clearLock { - fatalIf(probe.NewError(errors.New("invalid argument")), "clear flag must be passed with target alone") - } - m := minio.RetentionMode(strings.ToUpper(args[1])) if !m.IsValid() { fatalIf(probe.NewError(errors.New("invalid argument")), "invalid retention mode '%v'", m)