[MPlayer-cvslog] r31048 - trunk/gui/wm/ws.c

diego subversion at mplayerhq.hu
Tue Apr 20 10:55:04 CEST 2010


Author: diego
Date: Tue Apr 20 10:55:04 2010
New Revision: 31048

Log:
Remove unused static function wsDummyEvents and related unused code, fixes:
gui/wm/ws.c:710: warning: 'wsDummyEvents' defined but not used

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Tue Apr 20 10:49:17 2010	(r31047)
+++ trunk/gui/wm/ws.c	Tue Apr 20 10:55:04 2010	(r31048)
@@ -700,9 +700,6 @@ buttonreleased:
  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 @@ void wsMainLoop( void )
  XLockDisplay( wsDisplay );
 // XIfEvent( wsDisplay,&wsEvent,wsEvents,NULL );
 
-#if 1
-
 while(wsTrue){
  // handle pending events
  while ( XPending(wsDisplay) ){
@@ -733,15 +728,6 @@ while(wsTrue){
  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 );
 }
 


More information about the MPlayer-cvslog mailing list