@@ -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.
9083func 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.
116102func 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.
204183func inspectFormatWrite (fmtCtx formatter.Context , refs []string , getRef inspect.GetRefFunc ) error {
205184 if fmtCtx .Format != nodeInspectPrettyTemplate {
0 commit comments