Skip to content

Commit 264080d

Browse files
committed
cli/command/plugin: remove deprecated formatting functions
These were deprecated in bf47419, which is part of the v28.4 release. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent e5a0fb0 commit 264080d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

cli/command/plugin/formatter.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ enabled: {{.Enabled}}
2020
`
2121
)
2222

23-
// NewFormat returns a Format for rendering using a plugin Context
24-
//
25-
// Deprecated: this function was only used internally and will be removed in the next release.
26-
func NewFormat(source string, quiet bool) formatter.Format {
27-
return newFormat(source, quiet)
28-
}
29-
3023
// newFormat returns a Format for rendering using a pluginContext.
3124
func newFormat(source string, quiet bool) formatter.Format {
3225
switch source {
@@ -44,13 +37,6 @@ func newFormat(source string, quiet bool) formatter.Format {
4437
return formatter.Format(source)
4538
}
4639

47-
// FormatWrite writes the context
48-
//
49-
// Deprecated: this function was only used internally and will be removed in the next release.
50-
func FormatWrite(fmtCtx formatter.Context, plugins []*plugin.Plugin) error {
51-
return formatWrite(fmtCtx, plugins)
52-
}
53-
5440
// formatWrite writes the context
5541
func formatWrite(fmtCtx formatter.Context, plugins []*plugin.Plugin) error {
5642
render := func(format func(subContext formatter.SubContext) error) error {

0 commit comments

Comments
 (0)