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 {