From 4541df21e5ca3869b0fec60d875498fcd1629fbc Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 5 Mar 2025 18:22:51 +0100 Subject: [PATCH] cli/command/image: remove deprecated TagTrusted This function was only used internally, and has no known external consumers. It was deprecated in e37d814ce96b01393a400c081666ea1cca2eb8bd; this commit removes it. Signed-off-by: Sebastiaan van Stijn --- cli/command/image/trust.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cli/command/image/trust.go b/cli/command/image/trust.go index 6251754520..7e2e46b2ee 100644 --- a/cli/command/image/trust.go +++ b/cli/command/image/trust.go @@ -208,15 +208,6 @@ func convertTarget(t client.Target) (target, error) { }, nil } -// TagTrusted tags a trusted ref. It is a shallow wrapper around APIClient.ImageTag -// that updates the given image references to their familiar format for tagging -// and printing. -// -// Deprecated: this function was only used internally, and will be removed in the next release. -func TagTrusted(ctx context.Context, cli command.Cli, trustedRef reference.Canonical, ref reference.NamedTagged) error { - return trust.TagTrusted(ctx, cli.Client(), cli.Err(), trustedRef, ref) -} - // AuthResolver returns an auth resolver function from a command.Cli func AuthResolver(cli command.Cli) func(ctx context.Context, index *registrytypes.IndexInfo) registrytypes.AuthConfig { return func(ctx context.Context, index *registrytypes.IndexInfo) registrytypes.AuthConfig {