Skip to content

Commit 8969b57

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

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

cli/command/task/formatter.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ const (
2222
maxErrLength = 30
2323
)
2424

25-
// NewTaskFormat returns a Format for rendering using a task Context
26-
//
27-
// Deprecated: this function was only used internally and will be removed in the next release.
28-
func NewTaskFormat(source string, quiet bool) formatter.Format {
29-
return newTaskFormat(source, quiet)
30-
}
31-
3225
// newTaskFormat returns a Format for rendering using a taskContext.
3326
func newTaskFormat(source string, quiet bool) formatter.Format {
3427
switch source {
@@ -46,13 +39,6 @@ func newTaskFormat(source string, quiet bool) formatter.Format {
4639
return formatter.Format(source)
4740
}
4841

49-
// FormatWrite writes the context
50-
//
51-
// Deprecated: this function was only used internally and will be removed in the next release.
52-
func FormatWrite(fmtCtx formatter.Context, tasks []swarm.Task, names map[string]string, nodes map[string]string) error {
53-
return formatWrite(fmtCtx, tasks, names, nodes)
54-
}
55-
5642
// formatWrite writes the context.
5743
func formatWrite(fmtCtx formatter.Context, tasks []swarm.Task, names map[string]string, nodes map[string]string) error {
5844
render := func(format func(subContext formatter.SubContext) error) error {

0 commit comments

Comments
 (0)