wininet: Remove unused variables
Andrew Talbot
andrew.talbot at talbotville.com
Sat May 3 08:03:05 CDT 2008
Changelog:
wininet: Remove unused variables.
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 0f7df63..ad0759b 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);
@@ -3464,7 +3462,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;
@@ -3535,8 +3532,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];
More information about the wine-patches
mailing list