Index: sync/engine/net/server_connection_manager.cc |
diff --git a/sync/engine/net/server_connection_manager.cc b/sync/engine/net/server_connection_manager.cc |
index 83fbafe24e8c8d5fe7572b2cd1257b37c3b43a96..a5be7a51c7d0e6fb9c1d7e7778dfbfb662fee944 100644 |
--- a/sync/engine/net/server_connection_manager.cc |
+++ b/sync/engine/net/server_connection_manager.cc |
@@ -55,23 +55,6 @@ const char* HttpResponse::GetServerConnectionCodeString( |
#undef ENUM_CASE |
-// TODO(clamy): check if all errors are in the right category. |
-HttpResponse::ServerConnectionCode |
-HttpResponse::ServerConnectionCodeFromNetError(int error_code) { |
- switch (error_code) { |
- case net::ERR_ABORTED: |
- case net::ERR_SOCKET_NOT_CONNECTED: |
- case net::ERR_NETWORK_CHANGED: |
- case net::ERR_CONNECTION_FAILED: |
- case net::ERR_NAME_NOT_RESOLVED: |
- case net::ERR_INTERNET_DISCONNECTED: |
- case net::ERR_NETWORK_ACCESS_DENIED: |
- case net::ERR_NETWORK_IO_SUSPENDED: |
- return CONNECTION_UNAVAILABLE; |
- } |
- return IO_ERROR; |
-} |
- |
ServerConnectionManager::Connection::Connection( |
ServerConnectionManager* scm) : scm_(scm) { |
} |