Skip to content

Commit e5a0fb0

Browse files
committed
cli/command/node: remove deprecated formatting functions
These were deprecated in 123ef81, which is part of the v28.4 release. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 7b172fc commit e5a0fb0

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

cli/command/node/formatter.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,6 @@ TLS Info:
7979
tlsStatusHeader = "TLS STATUS"
8080
)
8181

82-
// NewFormat returns a Format for rendering using a node Context
83-
//
84-
// Deprecated: this function was only used internally and will be removed in the next release.
85-
func NewFormat(source string, quiet bool) formatter.Format {
86-
return newFormat(source, quiet)
87-
}
88-
8982
// newFormat returns a Format for rendering using a nodeContext.
9083
func newFormat(source string, quiet bool) formatter.Format {
9184
switch source {
@@ -105,13 +98,6 @@ func newFormat(source string, quiet bool) formatter.Format {
10598
return formatter.Format(source)
10699
}
107100

108-
// FormatWrite writes the context
109-
//
110-
// Deprecated: this function was only used internally and will be removed in the next release.
111-
func FormatWrite(fmtCtx formatter.Context, nodes []swarm.Node, info system.Info) error {
112-
return formatWrite(fmtCtx, nodes, info)
113-
}
114-
115101
// formatWrite writes the context.
116102
func formatWrite(fmtCtx formatter.Context, nodes []swarm.Node, info system.Info) error {
117103
render := func(format func(subContext formatter.SubContext) error) error {
@@ -193,13 +179,6 @@ func (c *nodeContext) EngineVersion() string {
193179
return c.n.Description.Engine.EngineVersion
194180
}
195181

196-
// InspectFormatWrite renders the context for a list of nodes
197-
//
198-
// Deprecated: this function was only used internally and will be removed in the next release.
199-
func InspectFormatWrite(fmtCtx formatter.Context, refs []string, getRef inspect.GetRefFunc) error {
200-
return inspectFormatWrite(fmtCtx, refs, getRef)
201-
}
202-
203182
// inspectFormatWrite renders the context for a list of nodes.
204183
func inspectFormatWrite(fmtCtx formatter.Context, refs []string, getRef inspect.GetRefFunc) error {
205184
if fmtCtx.Format != nodeInspectPrettyTemplate {

0 commit comments

Comments
 (0)