Mercurial > mplayer.hg
changeset 31006:768242ad42e2
Remove unused static function wsDummyEvents and related unused code, fixes:
gui/wm/ws.c:710: warning: 'wsDummyEvents' defined but not used
author | diego |
---|---|
date | Tue, 20 Apr 2010 08:55:04 +0000 |
parents | 0878f2429673 |
children | 26537f75c1dd |
files | gui/wm/ws.c |
diffstat | 1 files changed, 0 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- 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 ); }