Module: wine Branch: master Commit: 07ae2992b8676f1785e88634d9ce75e29425cb8d URL: http://source.winehq.org/git/wine.git/?a=commit;h=07ae2992b8676f1785e88634d9...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Sat May 3 14:03:05 2008 +0100
wininet: Remove unused variables.
---
dlls/wininet/ftp.c | 4 ---- dlls/wininet/http.c | 5 ----- dlls/wininet/urlcache.c | 6 ------ 3 files changed, 0 insertions(+), 15 deletions(-)
diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c index 4077de3..36e9005 100644 --- a/dlls/wininet/ftp.c +++ b/dlls/wininet/ftp.c @@ -2547,11 +2547,9 @@ INT FTP_ReceiveResponse(LPWININETFTPSESSIONW lpwfs, DWORD_PTR dwContext) INT rc = 0; char firstprefix[5]; BOOL multiline = FALSE; - LPWININETAPPINFOW hIC = NULL;
TRACE("socket(%d)\n", lpwfs->sndSocket);
- hIC = lpwfs->lpAppInfo; SendAsyncCallback(&lpwfs->hdr, dwContext, INTERNET_STATUS_RECEIVING_RESPONSE, NULL, 0);
while(1) @@ -3168,7 +3166,6 @@ lend: static BOOL FTP_RetrieveFileData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, HANDLE hFile) { DWORD nBytesWritten; - DWORD nBytesReceived = 0; INT nRC = 0; CHAR *lpszBuffer;
@@ -3190,7 +3187,6 @@ static BOOL FTP_RetrieveFileData(LPWININETFTPSESSIONW lpwfs, INT nDataSocket, HA if (nRC == 0) goto recv_end; WriteFile(hFile, lpszBuffer, nRC, &nBytesWritten, NULL); - nBytesReceived += nRC; } }
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 3155ac1..7f336f4 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -1375,7 +1375,6 @@ static void HTTPREQ_CloseConnection(WININETHANDLEHEADER *hdr) { LPWININETHTTPREQW lpwhr = (LPWININETHTTPREQW) hdr; LPWININETHTTPSESSIONW lpwhs = NULL; - LPWININETAPPINFOW hIC = NULL;
TRACE("%p\n",lpwhr);
@@ -1408,7 +1407,6 @@ static void HTTPREQ_CloseConnection(WININETHANDLEHEADER *hdr) }
lpwhs = lpwhr->lpHttpSession; - hIC = lpwhs->lpAppInfo;
INTERNET_SendCallback(&lpwhr->hdr, lpwhr->hdr.dwContext, INTERNET_STATUS_CLOSING_CONNECTION, 0, 0); @@ -3463,7 +3461,6 @@ HINTERNET HTTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName, LPCWSTR lpszPassword, DWORD dwFlags, DWORD_PTR dwContext, DWORD dwInternalFlags) { - BOOL bSuccess = FALSE; LPWININETHTTPSESSIONW lpwhs = NULL; HINTERNET handle = NULL;
@@ -3534,8 +3531,6 @@ HINTERNET HTTP_Connect(LPWININETAPPINFOW hIC, LPCWSTR lpszServerName, sizeof(handle)); }
- bSuccess = TRUE; - lerror: if( lpwhs ) WININET_Release( &lpwhs->hdr ); diff --git a/dlls/wininet/urlcache.c b/dlls/wininet/urlcache.c index f34451a..6b00ebb 100644 --- a/dlls/wininet/urlcache.c +++ b/dlls/wininet/urlcache.c @@ -1139,12 +1139,6 @@ static DWORD URLCache_HashKey(LPCSTR lpszKey) }; BYTE key[4]; DWORD i; - int subscript[sizeof(key) / sizeof(key[0])]; - - subscript[0] = *lpszKey; - subscript[1] = (char)(*lpszKey + 1); - subscript[2] = (char)(*lpszKey + 2); - subscript[3] = (char)(*lpszKey + 3);
for (i = 0; i < sizeof(key) / sizeof(key[0]); i++) key[i] = lookupTable[i];