summaryrefslogtreecommitdiffstats
path: root/net/base/net_errors.cc
diff options
context:
space:
mode:
authorwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-12 03:15:14 +0000
committerwtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-12 03:15:14 +0000
commitf065688a5efe759f297f4f9b7e907ac9eb167f01 (patch)
treef24ef1886c3ce787da99a65a7ffd9ecba4c52834 /net/base/net_errors.cc
parentffc070f858402528552ac08e34d62bdd7f75cf79 (diff)
downloadchromium_src-f065688a5efe759f297f4f9b7e907ac9eb167f01.zip
chromium_src-f065688a5efe759f297f4f9b7e907ac9eb167f01.tar.gz
chromium_src-f065688a5efe759f297f4f9b7e907ac9eb167f01.tar.bz2
Remove MapSystemErrorWithDefault.
On the "Mac 10.6 Tests (dbg)(4)" bot, gcm_unit_test did not emit the "OS Error was not set meaningfully" warning message, so there is no evidence that setsockopt doesn't set errno on failure. R=jar@chromium.org BUG=355222 Review URL: https://codereview.chromium.org/233503003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263462 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_errors.cc')
-rw-r--r--net/base/net_errors.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/net/base/net_errors.cc b/net/base/net_errors.cc
index 27f747b..a9d1443 100644
--- a/net/base/net_errors.cc
+++ b/net/base/net_errors.cc
@@ -59,13 +59,4 @@ Error FileErrorToNetError(base::File::Error file_error) {
}
}
-int MapSystemErrorWithDefault(int os_error, int default_net_error) {
- int net_error = MapSystemError(os_error);
- if (net_error != OK)
- return net_error;
- DLOG(WARNING) << "OS Error was not set meaningfully " << os_error;
- DCHECK_NE(default_net_error, OK);
- return default_net_error;
-}
-
} // namespace net