From 264080d2fc8132092a2fccfe5b5f494e53fcddf5 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 22 Aug 2025 09:40:43 +0200 Subject: [PATCH] cli/command/plugin: remove deprecated formatting functions These were deprecated in bf47419852f5a41bc079b8f377091780f8bdfe63, which is part of the v28.4 release. Signed-off-by: Sebastiaan van Stijn --- cli/command/plugin/formatter.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/cli/command/plugin/formatter.go b/cli/command/plugin/formatter.go index 4407745eb..8cf83018b 100644 --- a/cli/command/plugin/formatter.go +++ b/cli/command/plugin/formatter.go @@ -20,13 +20,6 @@ enabled: {{.Enabled}} ` ) -// NewFormat returns a Format for rendering using a plugin Context -// -// Deprecated: this function was only used internally and will be removed in the next release. -func NewFormat(source string, quiet bool) formatter.Format { - return newFormat(source, quiet) -} - // newFormat returns a Format for rendering using a pluginContext. func newFormat(source string, quiet bool) formatter.Format { switch source { @@ -44,13 +37,6 @@ func newFormat(source string, quiet bool) formatter.Format { return formatter.Format(source) } -// FormatWrite writes the context -// -// Deprecated: this function was only used internally and will be removed in the next release. -func FormatWrite(fmtCtx formatter.Context, plugins []*plugin.Plugin) error { - return formatWrite(fmtCtx, plugins) -} - // formatWrite writes the context func formatWrite(fmtCtx formatter.Context, plugins []*plugin.Plugin) error { render := func(format func(subContext formatter.SubContext) error) error {