From f969adf63f8aec47a98531f694a6d8f296971677 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 22 Aug 2025 09:36:11 +0200 Subject: [PATCH] cli/command/config: remove deprecated formatting functions These were deprecated in e626f778ec6e2f5b38c5a87f307e94331c5acf0c, which is part of the v28.4 release. Signed-off-by: Sebastiaan van Stijn --- cli/command/config/formatter.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/cli/command/config/formatter.go b/cli/command/config/formatter.go index 046a6e6346..f214c961f1 100644 --- a/cli/command/config/formatter.go +++ b/cli/command/config/formatter.go @@ -29,13 +29,6 @@ Data: {{.Data}}` ) -// NewFormat returns a Format for rendering using a config Context -// -// Deprecated: this function was only used internally and will be removed in the next release. -func NewFormat(source string, quiet bool) formatter.Format { - return newFormat(source, quiet) -} - // newFormat returns a Format for rendering using a configContext. func newFormat(source string, quiet bool) formatter.Format { switch source { @@ -50,13 +43,6 @@ func newFormat(source string, quiet bool) formatter.Format { return formatter.Format(source) } -// FormatWrite writes the context -// -// Deprecated: this function was only used internally and will be removed in the next release. -func FormatWrite(fmtCtx formatter.Context, configs []swarm.Config) error { - return formatWrite(fmtCtx, configs) -} - // formatWrite writes the context func formatWrite(fmtCtx formatter.Context, configs []swarm.Config) error { render := func(format func(subContext formatter.SubContext) error) error { @@ -128,13 +114,6 @@ func (c *configContext) Label(name string) string { return c.c.Spec.Annotations.Labels[name] } -// InspectFormatWrite renders the context for a list of configs -// -// Deprecated: this function was only used internally and will be removed in the next release. -func InspectFormatWrite(fmtCtx formatter.Context, refs []string, getRef inspect.GetRefFunc) error { - return inspectFormatWrite(fmtCtx, refs, getRef) -} - // inspectFormatWrite renders the context for a list of configs func inspectFormatWrite(fmtCtx formatter.Context, refs []string, getRef inspect.GetRefFunc) error { if fmtCtx.Format != configInspectPrettyTemplate {