# HG changeset patch # User diego # Date 1271753704 0 # Node ID 768242ad42e2ed1e74d3b8ecf9360ac0f4ad19c1 # Parent 0878f24296738cefa5efe41648cc18a98abaf3fb Remove unused static function wsDummyEvents and related unused code, fixes: gui/wm/ws.c:710: warning: 'wsDummyEvents' defined but not used diff -r 0878f2429673 -r 768242ad42e2 gui/wm/ws.c --- a/gui/wm/ws.c Tue Apr 20 08:49:17 2010 +0000 +++ b/gui/wm/ws.c Tue Apr 20 08:55:04 2010 +0000 @@ -700,9 +700,6 @@ return !wsTrue; } -static Bool wsDummyEvents( Display * display, XEvent * Event, XPointer arg ) -{ return True; } - void wsHandleEvents( void ){ // handle pending events while ( XPending(wsDisplay) ){ @@ -720,8 +717,6 @@ XLockDisplay( wsDisplay ); // XIfEvent( wsDisplay,&wsEvent,wsEvents,NULL ); -#if 1 - while(wsTrue){ // handle pending events while ( XPending(wsDisplay) ){ @@ -733,15 +728,6 @@ if(delay<10*20) delay+=20; // pump up delay up to 0.2 sec (low activity) } -#else - - while( wsTrue ) - { - XIfEvent( wsDisplay,&wsEvent,wsDummyEvents,NULL ); - wsEvents( wsDisplay,&wsEvent,NULL ); - } -#endif - XUnlockDisplay( wsDisplay ); }