From 176cb0ea7265d862bf9b8d956d20c1c5d6ad0fd5 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Tue, 11 Jun 2019 03:04:43 +0900 Subject: [PATCH] Remove unused value CfgFile (#173) This patch removes unused `CfgFile` value from codes. --- pkg/kn/commands/test_helper.go | 1 - pkg/kn/commands/types.go | 3 --- 2 files changed, 4 deletions(-) diff --git a/pkg/kn/commands/test_helper.go b/pkg/kn/commands/test_helper.go index 1f7de1398..e9dae68c5 100644 --- a/pkg/kn/commands/test_helper.go +++ b/pkg/kn/commands/test_helper.go @@ -55,7 +55,6 @@ Eventing: Manage event subscriptions and channels. Connect up event sources.`, if params.Output != nil { rootCmd.SetOutput(params.Output) } - rootCmd.PersistentFlags().StringVar(&CfgFile, "config", "", "config file (default is $HOME/.kn.yaml)") rootCmd.PersistentFlags().StringVar(&KubeCfgFile, "kubeconfig", "", "kubectl config file (default is $HOME/.kube/config)") rootCmd.AddCommand(subCommand) diff --git a/pkg/kn/commands/types.go b/pkg/kn/commands/types.go index 41e7f6d60..2659e4dd5 100644 --- a/pkg/kn/commands/types.go +++ b/pkg/kn/commands/types.go @@ -21,9 +21,6 @@ import ( "k8s.io/client-go/tools/clientcmd" ) -// CfgFile is Kn's config file is the path for the Kubernetes config -var CfgFile string - // KubeCfgFile is the path for the Kubernetes config var KubeCfgFile string