Skip to content

Commit

Permalink
Merge pull request #55 from rhcarvalho/deadcode
Browse files Browse the repository at this point in the history
Remove old dead code
  • Loading branch information
rhcarvalho authored Sep 14, 2016
2 parents aa863f4 + b4f437d commit 5baa3ca
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 48 deletions.
29 changes: 0 additions & 29 deletions dump_writers.go

This file was deleted.

19 changes: 0 additions & 19 deletions errors.go
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
package main

import "strings"

// An errorList accumulates multiple errors and implements error.
type errorList []error

func (e errorList) Error() string {
switch len(e) {
case 0:
return ""
case 1:
return e[0].Error()
}
var msgs = make([]string, len(e))
for i := range e {
msgs[i] = e[i].Error()
}
return "multiple errors:\n" + strings.Join(msgs, "\n")
}

// IgnorableError is an error that has an extra method to tell whether it should
// be ignored. Ignored errors may be omitted from standard program output.
type IgnorableError interface {
Expand Down

0 comments on commit 5baa3ca

Please sign in to comment.