mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 01:52:19 +00:00
Remove unused static function wsDummyEvents and related unused code, fixes:
gui/wm/ws.c:710: warning: 'wsDummyEvents' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31048 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
52effc30ed
commit
9ec5f2f565
14
gui/wm/ws.c
14
gui/wm/ws.c
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user