From 5c1ffddb8815e72c4c82e9c8f3303257c5467b19 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Wed, 22 Jun 2005 18:05:02 +0000 Subject: [PATCH] Fix declarations, remove unused code. --- dlls/user/clipboard.c | 2 +- dlls/user/listbox.c | 19 --------- dlls/user/msgbox.c | 2 +- dlls/user/sysparams.c | 89 +------------------------------------------ 4 files changed, 3 insertions(+), 109 deletions(-) diff --git a/dlls/user/clipboard.c b/dlls/user/clipboard.c index 444dfd80666..12acaa278f3 100644 --- a/dlls/user/clipboard.c +++ b/dlls/user/clipboard.c @@ -80,7 +80,7 @@ static BOOL bCBHasChanged = FALSE; * Set the global wineserver clipboard owner. The current process will * be the owner and will get the render notifications. */ -BOOL CLIPBOARD_SetClipboardOwner(HWND hWnd) +static BOOL CLIPBOARD_SetClipboardOwner(HWND hWnd) { BOOL bRet = FALSE; diff --git a/dlls/user/listbox.c b/dlls/user/listbox.c index 168f035f7b6..f43bce23fb3 100644 --- a/dlls/user/listbox.c +++ b/dlls/user/listbox.c @@ -172,25 +172,6 @@ inline static BOOL is_old_app( LB_DESCR *descr ) } -/*********************************************************************** - * LISTBOX_Dump - */ -void LISTBOX_Dump( LB_DESCR *descr ) -{ - INT i; - LB_ITEMDATA *item; - - TRACE( "Listbox:\n" ); - TRACE( "hwnd=%p descr=%08x items=%d top=%d\n", - descr->self, (UINT)descr, descr->nb_items, descr->top_item ); - for (i = 0, item = descr->items; i < descr->nb_items; i++, item++) - { - TRACE( "%4d: %-40s %d %08lx %3d\n", - i, debugstr_w(item->str), item->selected, item->data, item->height ); - } -} - - /*********************************************************************** * LISTBOX_GetCurrentPageSize * diff --git a/dlls/user/msgbox.c b/dlls/user/msgbox.c index 483f89574ea..add32112010 100644 --- a/dlls/user/msgbox.c +++ b/dlls/user/msgbox.c @@ -47,7 +47,7 @@ struct ThreadWindows HWND *handles; }; -BOOL CALLBACK MSGBOX_EnumProc(HWND hwnd, LPARAM lParam) +static BOOL CALLBACK MSGBOX_EnumProc(HWND hwnd, LPARAM lParam) { struct ThreadWindows *threadWindows = (struct ThreadWindows *)lParam; diff --git a/dlls/user/sysparams.c b/dlls/user/sysparams.c index c13b02bc677..35e50107c65 100644 --- a/dlls/user/sysparams.c +++ b/dlls/user/sysparams.c @@ -399,93 +399,6 @@ static void SYSPARAMS_NonClientMetrics32WTo32A( const NONCLIENTMETRICSW* lpnm32W SYSPARAMS_LogFont32WTo32A( &lpnm32W->lfMessageFont, &lpnm32A->lfMessageFont ); } -/*********************************************************************** - * SYSPARAMS_Reset - * - * Sets the system parameter which should be always loaded to - * current value stored in registry. - * Invalidates lazy loaded parameter, so it will be loaded the next time - * it is requested. - * - * Parameters: - * uiAction - system parameter to reload value for. - * Note, only "SET" values can be used for this parameter. - * If uiAction is 0 all system parameters are reset. - */ -void SYSPARAMS_Reset( UINT uiAction ) -{ -#define WINE_RELOAD_SPI(x) \ - case x: \ - spi_loaded[x##_IDX] = FALSE; \ - SystemParametersInfoA( x, 0, dummy_buf, 0 );\ - if (uiAction) \ - break - -#define WINE_IGNORE_SPI(x) \ - case x: \ - if (uiAction) \ - break - -#define WINE_INVALIDATE_SPI(x) \ - case x: \ - spi_loaded[x##_IDX] = FALSE; \ - break - - BOOL not_all_processed = TRUE; - char dummy_buf[10]; - - /* Execution falls through all the branches for uiAction == 0 */ - switch (uiAction) - { - case 0: - memset( spi_loaded, 0, sizeof(spi_loaded) ); - - WINE_RELOAD_SPI(SPI_SETBORDER); - WINE_RELOAD_SPI(SPI_ICONHORIZONTALSPACING); - WINE_RELOAD_SPI(SPI_ICONVERTICALSPACING); - WINE_IGNORE_SPI(SPI_SETSCREENSAVEACTIVE); - WINE_RELOAD_SPI(SPI_SETDOUBLECLKWIDTH); - WINE_RELOAD_SPI(SPI_SETDOUBLECLKHEIGHT); - WINE_RELOAD_SPI(SPI_SETMOUSEBUTTONSWAP); - WINE_RELOAD_SPI(SPI_SETSHOWSOUNDS); - WINE_RELOAD_SPI(SPI_SETMENUDROPALIGNMENT); - - default: - if (uiAction) - { - /* lazy loaded parameters */ - switch (uiAction) - { - WINE_INVALIDATE_SPI(SPI_SETBEEP); - WINE_INVALIDATE_SPI(SPI_SETMOUSE); - WINE_INVALIDATE_SPI(SPI_SETKEYBOARDSPEED); - WINE_INVALIDATE_SPI(SPI_SETSCREENSAVETIMEOUT); - WINE_INVALIDATE_SPI(SPI_SETGRIDGRANULARITY); - WINE_INVALIDATE_SPI(SPI_SETKEYBOARDDELAY); - WINE_INVALIDATE_SPI(SPI_SETICONTITLEWRAP); - WINE_INVALIDATE_SPI(SPI_SETDOUBLECLICKTIME); - WINE_INVALIDATE_SPI(SPI_SETDRAGFULLWINDOWS); - WINE_INVALIDATE_SPI(SPI_SETWORKAREA); - WINE_INVALIDATE_SPI(SPI_SETKEYBOARDPREF); - WINE_INVALIDATE_SPI(SPI_SETSCREENREADER); - WINE_INVALIDATE_SPI(SPI_SETSCREENSAVERRUNNING); - default: - FIXME( "Unknown action reset: %u\n", uiAction ); - break; - } - } - else - not_all_processed = FALSE; - break; - } - - if (!uiAction && not_all_processed) - ERR( "Incorrect implementation of SYSPARAMS_Reset. " - "Not all params are reloaded.\n" ); -#undef WINE_INVALIDATE_SPI -#undef WINE_IGNORE_SPI -#undef WINE_RELOAD_SPI -} /*********************************************************************** * get_volatile_regkey @@ -513,7 +426,7 @@ static HKEY get_volatile_regkey(void) * * Sends notification about system parameter update. */ -void SYSPARAMS_NotifyChange( UINT uiAction, UINT fWinIni ) +static void SYSPARAMS_NotifyChange( UINT uiAction, UINT fWinIni ) { static const WCHAR emptyW[1];