From 745a78f490fee851aa6ee513636e9b34fe30c817 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Mon, 24 Feb 2003 20:48:45 +0000 Subject: [PATCH] Remove some unreachable code. --- dlls/comctl32/rebar.c | 3 --- dlls/winedos/vga.c | 4 ---- dlls/wininet/internet.c | 4 ---- dlls/winsock/socket.c | 3 --- 4 files changed, 14 deletions(-) diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c index 8878177305..4a7a255c11 100644 --- a/dlls/comctl32/rebar.c +++ b/dlls/comctl32/rebar.c @@ -2273,9 +2273,6 @@ REBAR_InternalHitTest (REBAR_INFO *infoPtr, LPPOINT lpPt, UINT *pFlags, INT *pBa TRACE("NOWHERE\n"); return; } - - TRACE("flags=0x%X\n", *pFlags); - return; } diff --git a/dlls/winedos/vga.c b/dlls/winedos/vga.c index 9e6e2ea87c..2725ed45bd 100644 --- a/dlls/winedos/vga.c +++ b/dlls/winedos/vga.c @@ -971,10 +971,6 @@ void VGA_ioport_out( WORD port, BYTE val ) vga_index_3c4, val); } break; - - FIXME("Unsupported index, register 0x3c4: 0x%02x (value 0x%02x)\n", - vga_index_3c4, val); - break; case 0x3c8: palreg=val; palcnt=0; break; case 0x3c9: diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index 4382899a37..e3c8c5a25d 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -1720,7 +1720,6 @@ HINTERNET WINAPI InternetOpenUrlA(HINTERNET hInternet, LPCSTR lpszUrl, client = InternetConnectA(hInternet, hostName, urlComponents.nPort, userName, password, INTERNET_SERVICE_FTP, dwFlags, dwContext); return FtpOpenFileA(client, path, GENERIC_READ, dwFlags, dwContext); - break; case INTERNET_SCHEME_HTTP: case INTERNET_SCHEME_HTTPS: { @@ -1750,7 +1749,6 @@ HINTERNET WINAPI InternetOpenUrlA(HINTERNET hInternet, LPCSTR lpszUrl, return NULL; } return client1; - break; } case INTERNET_SCHEME_GOPHER: /* gopher doesn't seem to be implemented in wine, but it's supposed @@ -1758,8 +1756,6 @@ HINTERNET WINAPI InternetOpenUrlA(HINTERNET hInternet, LPCSTR lpszUrl, default: return NULL; } - if(client != NULL) - InternetCloseHandle(client); } diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c index 29595ac862..5596dd6d64 100644 --- a/dlls/winsock/socket.c +++ b/dlls/winsock/socket.c @@ -4181,9 +4181,6 @@ SOCKET WINAPI WSAAccept( SOCKET s, struct WS_sockaddr *addr, LPINT addrlen, SetLastError(WSAENOTSOCK); return SOCKET_ERROR; } - - SetLastError(WSAENOTSOCK); - return SOCKET_ERROR; } /***********************************************************************