diff options
Diffstat (limited to 'cmp/cmpopts/equate.go')
-rw-r--r-- | cmp/cmpopts/equate.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cmp/cmpopts/equate.go b/cmp/cmpopts/equate.go index e102849..e4ffca8 100644 --- a/cmp/cmpopts/equate.go +++ b/cmp/cmpopts/equate.go @@ -1,6 +1,6 @@ // Copyright 2017, The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE.md file. +// license that can be found in the LICENSE file. // Package cmpopts provides common options for the cmp package. package cmpopts @@ -11,7 +11,6 @@ import ( "time" "github.com/google/go-cmp/cmp" - "golang.org/x/xerrors" ) func equateAlways(_, _ interface{}) bool { return true } @@ -147,10 +146,3 @@ func areConcreteErrors(x, y interface{}) bool { _, ok2 := y.(error) return ok1 && ok2 } - -func compareErrors(x, y interface{}) bool { - xe := x.(error) - ye := y.(error) - // TODO: Use errors.Is when go1.13 is the minimally supported version of Go. - return xerrors.Is(xe, ye) || xerrors.Is(ye, xe) -} |