Skip to content

Commit f969adf

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

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

cli/command/config/formatter.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,6 @@ Data:
2929
{{.Data}}`
3030
)
3131

32-
// NewFormat returns a Format for rendering using a config Context
33-
//
34-
// Deprecated: this function was only used internally and will be removed in the next release.
35-
func NewFormat(source string, quiet bool) formatter.Format {
36-
return newFormat(source, quiet)
37-
}
38-
3932
// newFormat returns a Format for rendering using a configContext.
4033
func newFormat(source string, quiet bool) formatter.Format {
4134
switch source {
@@ -50,13 +43,6 @@ func newFormat(source string, quiet bool) formatter.Format {
5043
return formatter.Format(source)
5144
}
5245

53-
// FormatWrite writes the context
54-
//
55-
// Deprecated: this function was only used internally and will be removed in the next release.
56-
func FormatWrite(fmtCtx formatter.Context, configs []swarm.Config) error {
57-
return formatWrite(fmtCtx, configs)
58-
}
59-
6046
// formatWrite writes the context
6147
func formatWrite(fmtCtx formatter.Context, configs []swarm.Config) error {
6248
render := func(format func(subContext formatter.SubContext) error) error {
@@ -128,13 +114,6 @@ func (c *configContext) Label(name string) string {
128114
return c.c.Spec.Annotations.Labels[name]
129115
}
130116

131-
// InspectFormatWrite renders the context for a list of configs
132-
//
133-
// Deprecated: this function was only used internally and will be removed in the next release.
134-
func InspectFormatWrite(fmtCtx formatter.Context, refs []string, getRef inspect.GetRefFunc) error {
135-
return inspectFormatWrite(fmtCtx, refs, getRef)
136-
}
137-
138117
// inspectFormatWrite renders the context for a list of configs
139118
func inspectFormatWrite(fmtCtx formatter.Context, refs []string, getRef inspect.GetRefFunc) error {
140119
if fmtCtx.Format != configInspectPrettyTemplate {

0 commit comments

Comments
 (0)