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.
4033func 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
6147func 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
139118func inspectFormatWrite (fmtCtx formatter.Context , refs []string , getRef inspect.GetRefFunc ) error {
140119 if fmtCtx .Format != configInspectPrettyTemplate {
0 commit comments