From ff7111ae213d8e670c88d844aefd91f65c4be593 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 9 May 2023 22:39:22 +0200 Subject: [PATCH] cli/command: remove deprecated EncodeAuthToBase64 This function was deprecated in b87ed343510b1cf71d1aba02294f52268f754386, which is part of the v24.0 release, so we can remove it from master. Signed-off-by: Sebastiaan van Stijn --- cli/command/registry.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cli/command/registry.go b/cli/command/registry.go index 9099367225..94f58fe541 100644 --- a/cli/command/registry.go +++ b/cli/command/registry.go @@ -19,13 +19,6 @@ import ( "github.com/pkg/errors" ) -// EncodeAuthToBase64 serializes the auth configuration as JSON base64 payload. -// -// Deprecated: use [registrytypes.EncodeAuthConfig] instead. -func EncodeAuthToBase64(authConfig registrytypes.AuthConfig) (string, error) { - return registrytypes.EncodeAuthConfig(authConfig) -} - // RegistryAuthenticationPrivilegedFunc returns a RequestPrivilegeFunc from the specified registry index info // for the given command. func RegistryAuthenticationPrivilegedFunc(cli Cli, index *registrytypes.IndexInfo, cmdName string) types.RequestPrivilegeFunc {