From 7b172fcf538a608e4d208a27602179065e678f47 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 22 Aug 2025 09:39:35 +0200 Subject: [PATCH] cli/command/network: remove deprecated formatting functions These were deprecated in e3903a1ac8722714f8413ccdd28f4bb03b2cde0d, which is part of the v28.4 release. Signed-off-by: Sebastiaan van Stijn --- cli/command/network/formatter.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/cli/command/network/formatter.go b/cli/command/network/formatter.go index 59f97060cf..f456820009 100644 --- a/cli/command/network/formatter.go +++ b/cli/command/network/formatter.go @@ -17,13 +17,6 @@ const ( internalHeader = "INTERNAL" ) -// NewFormat returns a Format for rendering using a network 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 [formatter.Format] for rendering a networkContext. func newFormat(source string, quiet bool) formatter.Format { switch source { @@ -41,13 +34,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, networks []network.Summary) error { - return formatWrite(fmtCtx, networks) -} - // formatWrite writes the context. func formatWrite(fmtCtx formatter.Context, networks []network.Summary) error { render := func(format func(subContext formatter.SubContext) error) error {