vout: remove unused mouse visible/invisible event
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 6 Aug 2017 14:54:36 +0000 (17:54 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 6 Aug 2017 18:26:12 +0000 (21:26 +0300)
The window/display already have events/controls for this, and nothing
else cared, cares and probably will ever care.

src/video_output/display.c
src/video_output/event.h

index a65dc06..2d91dad 100644 (file)
@@ -570,7 +570,6 @@ static void VoutDisplayEventMouse(vout_display_t *vd, int event, va_list args)
         osys->mouse.last_moved = mdate();
 
     /* */
-    vout_SendEventMouseVisible(osys->vout);
     vout_SendDisplayEventMouse(osys->vout, &m);
     vlc_mutex_unlock(&osys->lock);
 }
@@ -758,7 +757,6 @@ bool vout_ManageDisplay(vout_display_t *vd, bool allow_reset_pictures)
         if (vout_HideWindowMouse(osys->vout, true) != VLC_SUCCESS
          && !vd->info.has_hide_mouse)
             vout_display_Control(vd, VOUT_DISPLAY_HIDE_MOUSE);
-        vout_SendEventMouseHidden(osys->vout);
     }
 
     bool reset_render = false;
index ece1042..78804c1 100644 (file)
@@ -98,16 +98,6 @@ static inline void vout_SendEventMouseDoubleClick(vout_thread_t *vout)
     //vout_ControlSetFullscreen(vout, !var_GetBool(vout, "fullscreen"));
     var_ToggleBool(vout, "fullscreen");
 }
-static inline void vout_SendEventMouseVisible(vout_thread_t *vout)
-{
-    /* TODO */
-    VLC_UNUSED(vout);
-}
-static inline void vout_SendEventMouseHidden(vout_thread_t *vout)
-{
-    /* TODO */
-    VLC_UNUSED(vout);
-}
 static inline void vout_SendEventViewpointChangeable(vout_thread_t *vout,
                                                      bool b_can_change)
 {