Skip to content

Commit 206a8da

Browse files
committed
cli/command/container: remove deprecated formatting functions
These were deprecated in 907507e and fdc90ca, which are part of the v28.4 release. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent f969adf commit 206a8da

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

cli/command/container/formatter_diff.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ const (
1212
pathHeader = "PATH"
1313
)
1414

15-
// NewDiffFormat returns a format for use with a diff Context
16-
//
17-
// Deprecated: this function was only used internally and will be removed in the next release.
18-
func NewDiffFormat(source string) formatter.Format {
19-
return newDiffFormat(source)
20-
}
21-
2215
// newDiffFormat returns a format for use with a diff [formatter.Context].
2316
func newDiffFormat(source string) formatter.Format {
2417
if source == formatter.TableFormatKey {
@@ -27,13 +20,6 @@ func newDiffFormat(source string) formatter.Format {
2720
return formatter.Format(source)
2821
}
2922

30-
// DiffFormatWrite writes formatted diff using the Context
31-
//
32-
// Deprecated: this function was only used internally and will be removed in the next release.
33-
func DiffFormatWrite(fmtCtx formatter.Context, changes []container.FilesystemChange) error {
34-
return diffFormatWrite(fmtCtx, changes)
35-
}
36-
3723
// diffFormatWrite writes formatted diff using the [formatter.Context].
3824
func diffFormatWrite(fmtCtx formatter.Context, changes []container.FilesystemChange) error {
3925
return fmtCtx.Write(newDiffContext(), func(format func(subContext formatter.SubContext) error) error {

0 commit comments

Comments
 (0)