From 4db1cc03ba8aa646be850c726d107de0c50b277c Mon Sep 17 00:00:00 2001 From: WanLinghao Date: Mon, 16 Jul 2018 15:16:32 +0800 Subject: [PATCH] clean unused function --- pkg/kubectl/cmd/templates/templater.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pkg/kubectl/cmd/templates/templater.go b/pkg/kubectl/cmd/templates/templater.go index 0892f04031..9fcb2dbb58 100644 --- a/pkg/kubectl/cmd/templates/templater.go +++ b/pkg/kubectl/cmd/templates/templater.go @@ -234,15 +234,6 @@ func rpad(s string, padding int) string { return fmt.Sprintf(template, s) } -func indentLines(s string, indentation int) string { - r := []string{} - for _, line := range strings.Split(s, "\n") { - indented := strings.Repeat(" ", indentation) + line - r = append(r, indented) - } - return strings.Join(r, "\n") -} - func appendIfNotPresent(s, stringToAppend string) string { if strings.Contains(s, stringToAppend) { return s