зеркало из https://github.com/mozilla/gecko-dev.git
Removing an #if 0 block that got checked in accidently with my last checkins.
This commit is contained in:
Родитель
19e35c44ca
Коммит
02366e93bc
|
@ -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
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Загрузка…
Ссылка в новой задаче