[vlc-devel] [PATCH v2] wayland: remove unused variable x and y

Alexandre Janniaux ajanni at videolabs.io
Thu Jan 31 11:17:04 CET 2019


---
 modules/video_output/wayland/shm.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/video_output/wayland/shm.c b/modules/video_output/wayland/shm.c
index 5616e6c6c1..fd5be34605 100644
--- a/modules/video_output/wayland/shm.c
+++ b/modules/video_output/wayland/shm.c
@@ -53,8 +53,6 @@ struct vout_display_sys_t
 
     size_t active_buffers;
 
-    int x;
-    int y;
     unsigned display_width;
     unsigned display_height;
     bool use_buffer_transform;
@@ -138,8 +136,6 @@ static void Prepare(vout_display_t *vd, picture_t *pic, subpicture_t *subpic,
     wl_display_flush(display);
 
     sys->active_buffers++;
-    sys->x = 0;
-    sys->y = 0;
 
     (void) subpic;
 }
@@ -292,8 +288,6 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
     sys->shm = NULL;
     sys->viewporter = NULL;
     sys->active_buffers = 0;
-    sys->x = 0;
-    sys->y = 0;
     sys->display_width = cfg->display.width;
     sys->display_height = cfg->display.height;
     sys->use_buffer_transform = false;
-- 
2.20.1



More information about the vlc-devel mailing list