From 5bb8ab4e6f26d5af76984ab9feef96c77ca21256 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 22 Aug 2025 09:43:27 +0200 Subject: [PATCH] cli/command/trust: remove deprecated formatting functions These were deprecated in 95c9b1b13bfd064d1d6d4f2a637862c0564ac237, which is part of the v28.4 release. Signed-off-by: Sebastiaan van Stijn --- cli/command/trust/formatter.go | 43 ---------------------------------- 1 file changed, 43 deletions(-) diff --git a/cli/command/trust/formatter.go b/cli/command/trust/formatter.go index e536995fd7..b3f8f1a5ae 100644 --- a/cli/command/trust/formatter.go +++ b/cli/command/trust/formatter.go @@ -17,14 +17,6 @@ const ( keysHeader = "KEYS" ) -// SignedTagInfo represents all formatted information needed to describe a signed tag: -// Name: name of the signed tag -// Digest: hex encoded digest of the contents -// Signers: list of entities who signed the tag -// -// Deprecated: this type was only used internally and will be removed in the next release. -type SignedTagInfo = signedTagInfo - // signedTagInfo represents all formatted information needed to describe a signed tag: // Name: name of the signed tag // Digest: hex encoded digest of the contents @@ -35,13 +27,6 @@ type signedTagInfo struct { Signers []string } -// SignerInfo represents all formatted information needed to describe a signer: -// Name: name of the signer role -// Keys: the keys associated with the signer -// -// Deprecated: this type was only used internally and will be removed in the next release. -type SignerInfo = signerInfo - // signerInfo represents all formatted information needed to describe a signer: // Name: name of the signer role // Keys: the keys associated with the signer @@ -50,27 +35,6 @@ type signerInfo struct { Keys []string } -// NewTrustTagFormat returns a Format for rendering using a trusted tag Context -// -// Deprecated: this function was only used internally and will be removed in the next release. -func NewTrustTagFormat() formatter.Format { - return defaultTrustTagTableFormat -} - -// NewSignerInfoFormat returns a Format for rendering a signer role info Context -// -// Deprecated: this function was only used internally and will be removed in the next release. -func NewSignerInfoFormat() formatter.Format { - return defaultSignerInfoTableFormat -} - -// TagWrite writes the context -// -// Deprecated: this function was only used internally and will be removed in the next release. -func TagWrite(fmtCtx formatter.Context, signedTagInfoList []signedTagInfo) error { - return tagWrite(fmtCtx, signedTagInfoList) -} - // tagWrite writes the context func tagWrite(fmtCtx formatter.Context, signedTagInfoList []signedTagInfo) error { render := func(format func(subContext formatter.SubContext) error) error { @@ -111,13 +75,6 @@ func (c *trustTagContext) Signers() string { return strings.Join(c.s.Signers, ", ") } -// SignerInfoWrite writes the context -// -// Deprecated: this function was only used internally and will be removed in the next release. -func SignerInfoWrite(fmtCtx formatter.Context, signerInfoList []signerInfo) error { - return signerInfoWrite(fmtCtx, signerInfoList) -} - // signerInfoWrite writes the context. func signerInfoWrite(fmtCtx formatter.Context, signerInfoList []signerInfo) error { render := func(format func(subContext formatter.SubContext) error) error {