diff --git a/netwerk/base/src/nsIOService.cpp b/netwerk/base/src/nsIOService.cpp index ee2d4d5decec..e77d4fa7c802 100644 --- a/netwerk/base/src/nsIOService.cpp +++ b/netwerk/base/src/nsIOService.cpp @@ -432,63 +432,5 @@ nsIOService::NewInputStreamChannel(nsIURI* uri, const char *contentType, *result = channel; return NS_OK; } -#if 0 -NS_IMETHODIMP -nsIOService::GetSocketErrorString(PRUint32 iCode, PRUnichar** oString) -{ - nsresult rv = NS_ERROR_FAILURE; - if (!oString) - return NS_ERROR_NULL_POINTER; - - *oString = nsnull; - - switch (iCode) /* these are currently just nsSocketState - (as in nsSocketTransport.h) */ - { - case eSocketState_WaitDNS: - { - static nsAutoString mesg("Resolving host "); - *oString = mesg.ToNewUnicode(); - if (!*oString) return NS_ERROR_OUT_OF_MEMORY; - rv = NS_OK; - } - break; - case eSocketState_Connected: - { - static nsAutoString mesg("Connected to "); - *oString = mesg.ToNewUnicode(); - if (!*oString) return NS_ERROR_OUT_OF_MEMORY; - rv = NS_OK; - } - break; - case eSocketState_WaitReadWrite: - { - static nsAutoString mesg("Transfering data from "); - *oString = mesg.ToNewUnicode(); - if (!*oString) return NS_ERROR_OUT_OF_MEMORY; - rv = NS_OK; - } - break; - case eSocketState_WaitConnect: - { - static nsAutoString mesg("Connecting to "); - *oString = mesg.ToNewUnicode(); - if (!*oString) return NS_ERROR_OUT_OF_MEMORY; - rv = NS_OK; - } - break; - case eSocketState_Created: - case eSocketState_Closed: - case eSocketState_Done: - case eSocketState_Timeout: - case eSocketState_Error: - case eSocketState_Max: - default: - return rv; // just return error, ie no status strings for this case - break; - } - return rv; -} -#endif ////////////////////////////////////////////////////////////////////////////////