From 02a759fa96bd16c0483c8e48c5658ee6b9739aa4 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 5 Jun 2017 00:36:05 +0000 Subject: [PATCH] Remove dead code: GetAuthConfig Signed-off-by: Shishir Mahajan --- registry/session.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/registry/session.go b/registry/session.go index 746b8fb5b5..9d7f32193f 100644 --- a/registry/session.go +++ b/registry/session.go @@ -757,19 +757,6 @@ func (r *Session) SearchRepositories(term string, limit int) (*registrytypes.Sea return result, json.NewDecoder(res.Body).Decode(result) } -// GetAuthConfig returns the authentication settings for a session -// TODO(tiborvass): remove this once registry client v2 is vendored -func (r *Session) GetAuthConfig(withPasswd bool) *types.AuthConfig { - password := "" - if withPasswd { - password = r.authConfig.Password - } - return &types.AuthConfig{ - Username: r.authConfig.Username, - Password: password, - } -} - func isTimeout(err error) bool { type timeout interface { Timeout() bool