File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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].
2316func 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].
3824func diffFormatWrite (fmtCtx formatter.Context , changes []container.FilesystemChange ) error {
3925 return fmtCtx .Write (newDiffContext (), func (format func (subContext formatter.SubContext ) error ) error {
You can’t perform that action at this time.
0 commit comments