Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Unified Diff: common/errors/walk.go

Issue 2963503003: [errors] Greatly simplify common/errors package. (Closed)
Patch Set: fix nits Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/errors/tags.go ('k') | common/errors/walk_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/errors/walk.go
diff --git a/common/errors/walk.go b/common/errors/walk.go
index f313626bc80850be8689d41508c22523e767b031..5b80d26c448ecf47407c463570c2061dc38c1fb9 100644
--- a/common/errors/walk.go
+++ b/common/errors/walk.go
@@ -55,11 +55,3 @@ func Any(err error, fn func(error) bool) (any bool) {
})
return
}
-
-// Contains performs a Walk traversal of an error, returning true if it is or
-// contains the supplied sentinel error.
-func Contains(err, sentinel error) bool {
- return Any(err, func(err error) bool {
- return err == sentinel
- })
-}
« no previous file with comments | « common/errors/tags.go ('k') | common/errors/walk_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698