Skip to content

Commit c6f4573

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

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

cli/command/service/formatter.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,6 @@ Ports:
195195
{{- end }}
196196
`
197197

198-
// NewFormat returns a Format for rendering using a Context
199-
//
200-
// Deprecated: this function was only used internally and will be removed in the next release.
201-
func NewFormat(source string) formatter.Format {
202-
return newFormat(source)
203-
}
204-
205198
// newFormat returns a Format for rendering using a Context.
206199
func newFormat(source string) formatter.Format {
207200
switch source {
@@ -224,13 +217,6 @@ func resolveNetworks(service swarm.Service, getNetwork inspect.GetRefFunc) map[s
224217
return networkNames
225218
}
226219

227-
// InspectFormatWrite renders the context for a list of services
228-
//
229-
// Deprecated: this function was only used internally and will be removed in the next release.
230-
func InspectFormatWrite(fmtCtx formatter.Context, refs []string, getRef, getNetwork inspect.GetRefFunc) error {
231-
return inspectFormatWrite(fmtCtx, refs, getRef, getNetwork)
232-
}
233-
234220
// inspectFormatWrite renders the context for a list of services
235221
func inspectFormatWrite(fmtCtx formatter.Context, refs []string, getRef, getNetwork inspect.GetRefFunc) error {
236222
if fmtCtx.Format != serviceInspectPrettyTemplate {

0 commit comments

Comments
 (0)