Remove useless code

Signed-off-by: sakeven <jc5930@sina.cn>
This commit is contained in:
sakeven
2017-08-28 14:05:31 +08:00
parent 877ee91930
commit 543eaf0f58

View File

@@ -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 {