Skip to content

Commit db67900

Browse files
committed
cli/command/image: remove deprecated PushTrustedReference
This function was only used internally, and has no known external consumers. It was deprecated in d804360; this commit removes it. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 58147dd commit db67900

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

cli/command/image/trust.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ func newNotaryClient(cli command.Streams, imgRefAndAuth trust.ImageRefAndAuth) (
4141
return trust.GetNotaryRepository(cli.In(), cli.Out(), command.UserAgent(), imgRefAndAuth.RepoInfo(), imgRefAndAuth.AuthConfig(), "pull")
4242
}
4343

44-
// PushTrustedReference pushes a canonical reference to the trust server.
45-
//
46-
// Deprecated: use [trust.PushTrustedReference] instead. this function was only used internally and will be removed in the next release.
47-
func PushTrustedReference(ctx context.Context, ioStreams command.Streams, repoInfo *registry.RepositoryInfo, ref reference.Named, authConfig registrytypes.AuthConfig, in io.Reader) error {
48-
return pushTrustedReference(ctx, ioStreams, repoInfo, ref, authConfig, in)
49-
}
50-
5144
// pushTrustedReference pushes a canonical reference to the trust server.
5245
func pushTrustedReference(ctx context.Context, ioStreams command.Streams, repoInfo *registry.RepositoryInfo, ref reference.Named, authConfig registrytypes.AuthConfig, in io.Reader) error {
5346
return trust.PushTrustedReference(ctx, ioStreams, repoInfo, ref, authConfig, in, command.UserAgent())

0 commit comments

Comments
 (0)