From 8969b575006786f5755ac8916abda3ce067e9b8d Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 22 Aug 2025 09:42:53 +0200 Subject: [PATCH] cli/command/task: remove deprecated formatting functions These were deprecated in c3ee82fdc325d373e47b6cae733198334db492ff, which is part of the v28.4 release. Signed-off-by: Sebastiaan van Stijn --- cli/command/task/formatter.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/cli/command/task/formatter.go b/cli/command/task/formatter.go index 7f754e8d95..51a19d993a 100644 --- a/cli/command/task/formatter.go +++ b/cli/command/task/formatter.go @@ -22,13 +22,6 @@ const ( maxErrLength = 30 ) -// NewTaskFormat returns a Format for rendering using a task Context -// -// Deprecated: this function was only used internally and will be removed in the next release. -func NewTaskFormat(source string, quiet bool) formatter.Format { - return newTaskFormat(source, quiet) -} - // newTaskFormat returns a Format for rendering using a taskContext. func newTaskFormat(source string, quiet bool) formatter.Format { switch source { @@ -46,13 +39,6 @@ func newTaskFormat(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, tasks []swarm.Task, names map[string]string, nodes map[string]string) error { - return formatWrite(fmtCtx, tasks, names, nodes) -} - // formatWrite writes the context. func formatWrite(fmtCtx formatter.Context, tasks []swarm.Task, names map[string]string, nodes map[string]string) error { render := func(format func(subContext formatter.SubContext) error) error {