[vlc-commits] display: remove dead close event code

Rémi Denis-Courmont git at videolan.org
Sun May 20 19:52:14 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri May 18 21:49:01 2018 +0300| [b15fa9a0a941c2677ff21d50d6de8e3f6299378d] | committer: Rémi Denis-Courmont

display: remove dead close event code

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b15fa9a0a941c2677ff21d50d6de8e3f6299378d
---

 include/vlc_vout_display.h | 3 ---
 src/video_output/display.c | 6 ------
 2 files changed, 9 deletions(-)

diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
index f2dde1b964..f0bac81f22 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -176,9 +176,6 @@ enum {
     VOUT_DISPLAY_EVENT_WINDOW_STATE,
 #endif
 
-    /* */
-    VOUT_DISPLAY_EVENT_CLOSE,
-
     /* Mouse event */
     VOUT_DISPLAY_EVENT_MOUSE_MOVED,
     VOUT_DISPLAY_EVENT_MOUSE_PRESSED,
diff --git a/src/video_output/display.c b/src/video_output/display.c
index d467773024..eff31b75c5 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -544,11 +544,6 @@ static void VoutDisplayEvent(vout_display_t *vd, int event, va_list args)
     vout_display_owner_sys_t *osys = vd->owner.sys;
 
     switch (event) {
-    case VOUT_DISPLAY_EVENT_CLOSE: {
-        msg_Dbg(vd, "VoutDisplayEvent 'close'");
-        vout_SendEventClose(osys->vout);
-        break;
-    }
     case VOUT_DISPLAY_EVENT_MOUSE_MOVED:
     case VOUT_DISPLAY_EVENT_MOUSE_PRESSED:
     case VOUT_DISPLAY_EVENT_MOUSE_RELEASED:
@@ -1150,7 +1145,6 @@ static void SplitterEvent(vout_display_t *vd, int event, va_list args)
         break;
 #endif
     case VOUT_DISPLAY_EVENT_MOUSE_DOUBLE_CLICK:
-    case VOUT_DISPLAY_EVENT_CLOSE:
     case VOUT_DISPLAY_EVENT_PICTURES_INVALID:
         VoutDisplayEvent(vd, event, args);
         break;



More information about the vlc-commits mailing list