From 736fafb2d0b8b70573978f3d220be65afb1587f4 Mon Sep 17 00:00:00 2001 From: Kate Heddleston Date: Mon, 16 Oct 2017 14:51:23 -0700 Subject: [PATCH] Removing unused code with a TODO that no longer needs to be done Signed-off-by: Kate Heddleston --- pkg/system/exitcode.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pkg/system/exitcode.go b/pkg/system/exitcode.go index 60f0514b1d..a5e5616c4f 100644 --- a/pkg/system/exitcode.go +++ b/pkg/system/exitcode.go @@ -17,17 +17,3 @@ func GetExitCode(err error) (int, error) { } return exitCode, fmt.Errorf("failed to get exit code") } - -// ProcessExitCode process the specified error and returns the exit status code -// if the error was of type exec.ExitError, returns nothing otherwise. -func ProcessExitCode(err error) (exitCode int) { - if err != nil { - var exiterr error - if exitCode, exiterr = GetExitCode(err); exiterr != nil { - // TODO: Fix this so we check the error's text. - // we've failed to retrieve exit code, so we set it to 127 - exitCode = 127 - } - } - return -}