From 801feb642055234a2953237c0a8595fd41fc6d10 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 2 Feb 2014 01:50:25 +0100 Subject: x11: remove apparently useless code This code essentially does nothing. As far as I could find out, this actually used to do something. Then it was removed with commit efe7c39f, leaving some leftover code that didn't do anything useful. This happened 12 years ago! Also remove a commented debug printf. --- video/out/x11_common.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'video') diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 2c29242af6..378ccbc508 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -757,7 +757,6 @@ int vo_x11_check_events(struct vo *vo) vo_x11_update_geometry(vo); while (XPending(display)) { XNextEvent(display, &Event); -// printf("\rEvent.type=%X \n",Event.type); switch (Event.type) { case Expose: x11->pending_vo_events |= VO_EVENT_EXPOSE; @@ -818,13 +817,6 @@ int vo_x11_check_events(struct vo *vo) (MP_MOUSE_BTN0 + Event.xbutton.button - 1) | get_mods(Event.xbutton.state) | MP_KEY_STATE_UP); break; - case PropertyNotify: { - char *name = XGetAtomName(display, Event.xproperty.atom); - if (!name) - break; - XFree(name); - break; - } case MapNotify: x11->window_hidden = false; vo_x11_update_geometry(vo); -- cgit v1.2.3