cli/command/registry: remove deprecated formatting functions
These were deprecated in 83371c2014, which
is part of the v28.4 release.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -16,13 +16,6 @@ const (
|
||||
automatedHeader = "AUTOMATED"
|
||||
)
|
||||
|
||||
// NewSearchFormat returns a Format for rendering using a search Context
|
||||
//
|
||||
// Deprecated: this function was only used internally and will be removed in the next release.
|
||||
func NewSearchFormat(source string) formatter.Format {
|
||||
return newFormat(source)
|
||||
}
|
||||
|
||||
// newFormat returns a Format for rendering using a searchContext.
|
||||
func newFormat(source string) formatter.Format {
|
||||
switch source {
|
||||
@@ -32,13 +25,6 @@ func newFormat(source string) formatter.Format {
|
||||
return formatter.Format(source)
|
||||
}
|
||||
|
||||
// SearchWrite writes the context
|
||||
//
|
||||
// Deprecated: this function was only used internally and will be removed in the next release.
|
||||
func SearchWrite(fmtCtx formatter.Context, results []registrytypes.SearchResult) error {
|
||||
return formatWrite(fmtCtx, results)
|
||||
}
|
||||
|
||||
// formatWrite writes the context.
|
||||
func formatWrite(fmtCtx formatter.Context, results []registrytypes.SearchResult) error {
|
||||
render := func(format func(subContext formatter.SubContext) error) error {
|
||||
|
||||
Reference in New Issue
Block a user