From 307f34eeef918a2370e934a40eb75e1db8ab6515 Mon Sep 17 00:00:00 2001 From: Doug Davis Date: Thu, 23 Jul 2015 07:09:48 -0700 Subject: [PATCH] Remove dead code thanks to @tiborvass for noticing Signed-off-by: Doug Davis --- registry/client/errors.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/registry/client/errors.go b/registry/client/errors.go index 327fea6d..2c168400 100644 --- a/registry/client/errors.go +++ b/registry/client/errors.go @@ -53,13 +53,6 @@ func handleErrorResponse(resp *http.Response) error { err := parseHTTPErrorResponse(resp.Body) if uErr, ok := err.(*UnexpectedHTTPResponseError); ok { return v2.ErrorCodeUnauthorized.WithDetail(uErr.Response) - /* - return &errcode.Error{ - Code: v2.ErrorCodeUnauthorized, - Message: v2.ErrorCodeUnauthorized.Message(), - Detail: uErr.Response, - } - */ } return err }