From 9fa7f46673552993e751578d236ddcfd8ce6159c Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Wed, 12 Sep 2018 10:22:04 +0200 Subject: [PATCH] Remove unused fields from YAMLPrinter struct --- .../cli-runtime/pkg/genericclioptions/printers/json.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/staging/src/k8s.io/cli-runtime/pkg/genericclioptions/printers/json.go b/staging/src/k8s.io/cli-runtime/pkg/genericclioptions/printers/json.go index 1df9a864665..63f5834d418 100644 --- a/staging/src/k8s.io/cli-runtime/pkg/genericclioptions/printers/json.go +++ b/staging/src/k8s.io/cli-runtime/pkg/genericclioptions/printers/json.go @@ -68,10 +68,7 @@ func (p *JSONPrinter) PrintObj(obj runtime.Object, w io.Writer) error { // YAMLPrinter is an implementation of ResourcePrinter which outputs an object as YAML. // The input object is assumed to be in the internal version of an API and is converted // to the given version first. -type YAMLPrinter struct { - version string - converter runtime.ObjectConvertor -} +type YAMLPrinter struct{} // PrintObj prints the data as YAML. func (p *YAMLPrinter) PrintObj(obj runtime.Object, w io.Writer) error {