USER: fix declarations, remove unused code
Mike McCormack
mike at codeweavers.com
Tue Jun 21 20:30:37 CDT 2005
Fixes more -Wmissing-declarations warnings.
Mike
ChangeLog:
* fix declarations, remove unused code
-------------- next part --------------
Index: dlls/user/clipboard.c
===================================================================
RCS file: /home/wine/wine/dlls/user/clipboard.c,v
retrieving revision 1.1
diff -u -p -r1.1 clipboard.c
--- dlls/user/clipboard.c 25 Apr 2005 11:33:36 -0000 1.1
+++ dlls/user/clipboard.c 22 Jun 2005 01:31:22 -0000
@@ -80,7 +80,7 @@ static BOOL bCBHasChanged = FALSE;
* Set the global wineserver clipboard owner. The current process will
* be the owner and <hWnd> will get the render notifications.
*/
-BOOL CLIPBOARD_SetClipboardOwner(HWND hWnd)
+static BOOL CLIPBOARD_SetClipboardOwner(HWND hWnd)
{
BOOL bRet = FALSE;
Index: dlls/user/listbox.c
===================================================================
RCS file: /home/wine/wine/dlls/user/listbox.c,v
retrieving revision 1.13
diff -u -p -r1.13 listbox.c
--- dlls/user/listbox.c 27 Apr 2005 10:23:24 -0000 1.13
+++ dlls/user/listbox.c 22 Jun 2005 01:31:22 -0000
@@ -173,25 +173,6 @@ inline static BOOL is_old_app( LB_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
*
* Return the current page size
Index: dlls/user/msgbox.c
===================================================================
RCS file: /home/wine/wine/dlls/user/msgbox.c,v
retrieving revision 1.2
diff -u -p -r1.2 msgbox.c
--- dlls/user/msgbox.c 27 May 2005 19:26:34 -0000 1.2
+++ dlls/user/msgbox.c 22 Jun 2005 01:31:22 -0000
@@ -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;
Index: dlls/user/sysparams.c
===================================================================
RCS file: /home/wine/wine/dlls/user/sysparams.c,v
retrieving revision 1.23
diff -u -p -r1.23 sysparams.c
--- dlls/user/sysparams.c 21 Jun 2005 20:02:54 -0000 1.23
+++ dlls/user/sysparams.c 22 Jun 2005 01:31:23 -0000
@@ -399,93 +399,6 @@ static void SYSPARAMS_NonClientMetrics32
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];
More information about the wine-patches
mailing list