| Index: go/src/infra/libs/errors/multierror.go
|
| diff --git a/go/src/infra/libs/errors/multierror.go b/go/src/infra/libs/errors/multierror.go
|
| deleted file mode 100644
|
| index 30473250dc7ca7bda89d529523eb4472a6c86a6f..0000000000000000000000000000000000000000
|
| --- a/go/src/infra/libs/errors/multierror.go
|
| +++ /dev/null
|
| @@ -1,37 +0,0 @@
|
| -// Copyright 2015 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -package errors
|
| -
|
| -import (
|
| - "fmt"
|
| -)
|
| -
|
| -// MultiError is a simple `error` implementation which represents multiple
|
| -// `error` objects in one.
|
| -type MultiError []error
|
| -
|
| -// MultiErrorFromErrors takes an error-channel, blocks on it, and returns
|
| -// a MultiError for any errors pushed to it over the channel, or nil if
|
| -// all the errors were nil.
|
| -func MultiErrorFromErrors(ch <-chan error) error {
|
| - if ch == nil {
|
| - return nil
|
| - }
|
| - ret := MultiError(nil)
|
| - for e := range ch {
|
| - if e == nil {
|
| - continue
|
| - }
|
| - ret = append(ret, e)
|
| - }
|
| - if len(ret) == 0 {
|
| - return nil
|
| - }
|
| - return ret
|
| -}
|
| -
|
| -func (m MultiError) Error() string {
|
| - return fmt.Sprintf("%+q", []error(m))
|
| -}
|
|
|