Andrew Talbot : inetcomm: Remove unused function.

Alexandre Julliard julliard at winehq.org
Thu Feb 5 09:20:59 CST 2009


Module: wine
Branch: master
Commit: cd0317f22d0a20f576ac3eef66ea94b4938d5f01
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cd0317f22d0a20f576ac3eef66ea94b4938d5f01

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Wed Feb  4 20:39:45 2009 +0000

inetcomm: Remove unused function.

---

 dlls/inetcomm/inetcomm_private.h  |    2 --
 dlls/inetcomm/internettransport.c |   23 -----------------------
 2 files changed, 0 insertions(+), 25 deletions(-)

diff --git a/dlls/inetcomm/inetcomm_private.h b/dlls/inetcomm/inetcomm_private.h
index 1d752c0..533c926 100644
--- a/dlls/inetcomm/inetcomm_private.h
+++ b/dlls/inetcomm/inetcomm_private.h
@@ -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,
diff --git a/dlls/inetcomm/internettransport.c b/dlls/inetcomm/internettransport.c
index 7cef414..f0499bc 100644
--- a/dlls/inetcomm/internettransport.c
+++ b/dlls/inetcomm/internettransport.c
@@ -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)
 {




More information about the wine-cvs mailing list