Commit cd0317f2 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

inetcomm: Remove unused function.

parent 59a50245
......@@ -61,8 +61,6 @@ HRESULT InternetTransport_DropConnection(InternetTransport *This);
HRESULT InternetTransport_GetStatus(InternetTransport *This,
IXPSTATUS *pCurrentStatus);
HRESULT InternetTransport_ChangeStatus(InternetTransport *This, IXPSTATUS Status);
HRESULT InternetTransport_Read(InternetTransport *This, int cbBuffer,
INETXPORT_COMPLETION_FUNCTION fnCompletion);
HRESULT InternetTransport_ReadLine(InternetTransport *This,
INETXPORT_COMPLETION_FUNCTION fnCompletion);
HRESULT InternetTransport_Write(InternetTransport *This, const char *pvData,
......
......@@ -204,29 +204,6 @@ HRESULT InternetTransport_ChangeStatus(InternetTransport *This, IXPSTATUS Status
return S_OK;
}
HRESULT InternetTransport_Read(InternetTransport *This, int cbBuffer,
INETXPORT_COMPLETION_FUNCTION fnCompletion)
{
if (This->Status == IXP_DISCONNECTED)
return IXP_E_NOT_CONNECTED;
if (This->fnCompletion)
return IXP_E_BUSY;
This->fnCompletion = fnCompletion;
This->cbBuffer = cbBuffer;
This->pBuffer = HeapAlloc(GetProcessHeap(), 0, This->cbBuffer);
This->iCurrentBufferOffset = 0;
if (WSAAsyncSelect(This->Socket, This->hwnd, IX_READ, FD_READ) == SOCKET_ERROR)
{
ERR("WSAAsyncSelect failed with error %d\n", WSAGetLastError());
/* FIXME: handle error */
}
return S_OK;
}
HRESULT InternetTransport_ReadLine(InternetTransport *This,
INETXPORT_COMPLETION_FUNCTION fnCompletion)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment