From 543eaf0f58972fda2915a85ca09b129f6ce7a0ee Mon Sep 17 00:00:00 2001 From: sakeven Date: Mon, 28 Aug 2017 14:05:31 +0800 Subject: [PATCH] Remove useless code Signed-off-by: sakeven --- pkg/kubectl/cmd/util/helpers.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pkg/kubectl/cmd/util/helpers.go b/pkg/kubectl/cmd/util/helpers.go index 78590ab25c1..a7277ec6477 100644 --- a/pkg/kubectl/cmd/util/helpers.go +++ b/pkg/kubectl/cmd/util/helpers.go @@ -119,11 +119,6 @@ func CheckErr(err error) { checkErr(err, fatalErrHandler) } -// checkErrWithPrefix works like CheckErr, but adds a caller-defined prefix to non-nil errors -func checkErrWithPrefix(prefix string, err error) { - checkErr(err, fatalErrHandler) -} - // checkErr formats a given error as a string and calls the passed handleErr // func with that string and an kubectl exit code. func checkErr(err error, handleErr func(string, int)) { @@ -595,7 +590,7 @@ func ChangeResourcePatch(info *resource.Info, changeCause string) ([]byte, types } } -// containsChangeCause checks if input resource info contains change-cause annotation. +// ContainsChangeCause checks if input resource info contains change-cause annotation. func ContainsChangeCause(info *resource.Info) bool { annotations, err := info.Mapping.MetadataAccessor.Annotations(info.Object) if err != nil {