Skip to content

Commit 04bcae3

Browse files
committed
cli/command/secret: remove deprecated formatting functions
These were deprecated in f3088e3, which is part of the v28.4 release. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent c592932 commit 04bcae3

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

cli/command/secret/formatter.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ Created at: {{.CreatedAt}}
2828
Updated at: {{.UpdatedAt}}`
2929
)
3030

31-
// NewFormat returns a Format for rendering using a secret Context
32-
//
33-
// Deprecated: this function was only used internally and will be removed in the next release.
34-
func NewFormat(source string, quiet bool) formatter.Format {
35-
return newFormat(source, quiet)
36-
}
37-
3831
// newFormat returns a Format for rendering using a secretContext.
3932
func newFormat(source string, quiet bool) formatter.Format {
4033
switch source {
@@ -49,13 +42,6 @@ func newFormat(source string, quiet bool) formatter.Format {
4942
return formatter.Format(source)
5043
}
5144

52-
// FormatWrite writes the context
53-
//
54-
// Deprecated: this function was only used internally and will be removed in the next release.
55-
func FormatWrite(fmtCtx formatter.Context, secrets []swarm.Secret) error {
56-
return formatWrite(fmtCtx, secrets)
57-
}
58-
5945
// formatWrite writes the context
6046
func formatWrite(fmtCtx formatter.Context, secrets []swarm.Secret) error {
6147
render := func(format func(subContext formatter.SubContext) error) error {
@@ -135,13 +121,6 @@ func (c *secretContext) Label(name string) string {
135121
return c.s.Spec.Annotations.Labels[name]
136122
}
137123

138-
// InspectFormatWrite renders the context for a list of secrets
139-
//
140-
// Deprecated: this function was only used internally and will be removed in the next release.
141-
func InspectFormatWrite(fmtCtx formatter.Context, refs []string, getRef inspect.GetRefFunc) error {
142-
return inspectFormatWrite(fmtCtx, refs, getRef)
143-
}
144-
145124
// inspectFormatWrite renders the context for a list of secrets.
146125
func inspectFormatWrite(fmtCtx formatter.Context, refs []string, getRef inspect.GetRefFunc) error {
147126
if fmtCtx.Format != secretInspectPrettyTemplate {

0 commit comments

Comments
 (0)