From d223ec3b56ff7e0a4a930d6ebc7a74f4a01ea515 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 22 Aug 2025 09:38:56 +0200 Subject: [PATCH] cli/command/image: remove deprecated formatting functions These were deprecated in 15cf4fa912cc6319110065d4f8c83cc6517ca8b2, which is part of the v28.4 release. Signed-off-by: Sebastiaan van Stijn --- cli/command/image/formatter_history.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/cli/command/image/formatter_history.go b/cli/command/image/formatter_history.go index 9d6d243fa0..0add567b3d 100644 --- a/cli/command/image/formatter_history.go +++ b/cli/command/image/formatter_history.go @@ -19,13 +19,6 @@ const ( commentHeader = "COMMENT" ) -// NewHistoryFormat returns a format for rendering an HistoryContext -// -// Deprecated: this function was only used internally and will be removed in the next release. -func NewHistoryFormat(source string, quiet bool, human bool) formatter.Format { - return newHistoryFormat(source, quiet, human) -} - // newHistoryFormat returns a format for rendering a historyContext. func newHistoryFormat(source string, quiet bool, human bool) formatter.Format { if source == formatter.TableFormatKey { @@ -42,13 +35,6 @@ func newHistoryFormat(source string, quiet bool, human bool) formatter.Format { return formatter.Format(source) } -// HistoryWrite writes the context -// -// Deprecated: this function was only used internally and will be removed in the next release. -func HistoryWrite(fmtCtx formatter.Context, human bool, histories []image.HistoryResponseItem) error { - return historyWrite(fmtCtx, human, histories) -} - // historyWrite writes the context func historyWrite(fmtCtx formatter.Context, human bool, histories []image.HistoryResponseItem) error { render := func(format func(subContext formatter.SubContext) error) error {