From 44e2e7a906d6c6dfe1a98647a47a903dcd61b872 Mon Sep 17 00:00:00 2001 From: lcfang Date: Mon, 11 Dec 2017 14:53:26 +0800 Subject: [PATCH] delete the unused function in kubectl --- pkg/kubectl/cmd/cmd.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkg/kubectl/cmd/cmd.go b/pkg/kubectl/cmd/cmd.go index 35baaaaaf7e..04429a76b4e 100644 --- a/pkg/kubectl/cmd/cmd.go +++ b/pkg/kubectl/cmd/cmd.go @@ -368,13 +368,3 @@ func deprecatedAlias(deprecatedVersion string, cmd *cobra.Command) *cobra.Comman cmd.Hidden = true return cmd } - -// deprecated is similar to deprecatedAlias, but it is used for deprecations -// that are not simple aliases; this command is actually a different -// (deprecated) codepath. -func deprecated(baseName, to string, parent, cmd *cobra.Command) string { - cmd.Long = fmt.Sprintf("Deprecated: all functionality can be found in \"%s %s\"", baseName, to) - cmd.Short = fmt.Sprintf("Deprecated: use %s", to) - parent.AddCommand(cmd) - return cmd.Name() -}