From 5f4b14950eaef4e69eee68127c62f16c893638cf Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 19 Oct 2024 11:00:38 +0200 Subject: [PATCH] cli: remove deprecated Errors type The Errors type was deprecated in d3bafa5f3ee9089f71d4c3e3d08267521107d73b, which has been included in the 27.4.0 release. This patch removes the type, as there are no external consumers. Signed-off-by: Sebastiaan van Stijn --- cli/error.go | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/cli/error.go b/cli/error.go index b1198997b4..8c4a5f952b 100644 --- a/cli/error.go +++ b/cli/error.go @@ -2,28 +2,8 @@ package cli import ( "strconv" - "strings" ) -// Errors is a list of errors. -// Useful in a loop if you don't want to return the error right away and you want to display after the loop, -// all the errors that happened during the loop. -// -// Deprecated: use [errors.Join] instead; will be removed in the next release. -type Errors []error - -func (errList Errors) Error() string { - if len(errList) < 1 { - return "" - } - - out := make([]string, len(errList)) - for i := range errList { - out[i] = errList[i].Error() - } - return strings.Join(out, ", ") -} - // StatusError reports an unsuccessful exit by a command. type StatusError struct { Status string