winhttp: netconn_query_data_available() is not used anymore so remove it.

Francois Gouget fgouget at free.fr
Fri Nov 1 04:34:39 CDT 2013


---
 dlls/winhttp/net.c             | 20 --------------------
 dlls/winhttp/winhttp_private.h |  1 -
 2 files changed, 21 deletions(-)

diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c
index 6d9b82a..ac8ae56 100644
--- a/dlls/winhttp/net.c
+++ b/dlls/winhttp/net.c
@@ -712,26 +712,6 @@ BOOL netconn_recv( netconn_t *conn, void *buf, size_t len, int flags, int *recvd
     return TRUE;
 }
 
-BOOL netconn_query_data_available( netconn_t *conn, DWORD *available )
-{
-#ifdef FIONREAD
-    int ret;
-    ULONG unread;
-#endif
-    *available = 0;
-    if (!netconn_connected( conn )) return FALSE;
-
-    if (conn->secure)
-    {
-        *available = conn->peek_len;
-        return TRUE;
-    }
-#ifdef FIONREAD
-    if (!(ret = ioctlsocket( conn->socket, FIONREAD, &unread ))) *available = unread;
-#endif
-    return TRUE;
-}
-
 DWORD netconn_set_timeout( netconn_t *netconn, BOOL send, int value )
 {
     struct timeval tv;
diff --git a/dlls/winhttp/winhttp_private.h b/dlls/winhttp/winhttp_private.h
index 12255ed..fa91bb8 100644
--- a/dlls/winhttp/winhttp_private.h
+++ b/dlls/winhttp/winhttp_private.h
@@ -266,7 +266,6 @@ BOOL netconn_connected( netconn_t * ) DECLSPEC_HIDDEN;
 BOOL netconn_create( netconn_t *, int, int, int ) DECLSPEC_HIDDEN;
 BOOL netconn_init( netconn_t * ) DECLSPEC_HIDDEN;
 void netconn_unload( void ) DECLSPEC_HIDDEN;
-BOOL netconn_query_data_available( netconn_t *, DWORD * ) DECLSPEC_HIDDEN;
 BOOL netconn_recv( netconn_t *, void *, size_t, int, int * ) DECLSPEC_HIDDEN;
 BOOL netconn_resolve( WCHAR *, INTERNET_PORT, struct sockaddr *, socklen_t *, int ) DECLSPEC_HIDDEN;
 BOOL netconn_secure_connect( netconn_t *, WCHAR * ) DECLSPEC_HIDDEN;
-- 
1.8.4.rc3




More information about the wine-patches mailing list