[PATCH weston] weston-launch: Remove unused event source

Derek Foreman derekf at osg.samsung.com
Wed Oct 21 10:39:11 PDT 2015


vt_source is never added to an event loop in this launcher, but
it's potentially removed.

Let's just remove the variable entirely.

Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
---
 src/launcher-weston-launch.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/launcher-weston-launch.c b/src/launcher-weston-launch.c
index e85b2c9..ad919f1 100644
--- a/src/launcher-weston-launch.c
+++ b/src/launcher-weston-launch.c
@@ -96,7 +96,6 @@ struct launcher_weston_launch {
 	struct wl_event_source *source;
 
 	int kb_mode, tty, drm_fd;
-	struct wl_event_source *vt_source;
 };
 
 static int
@@ -283,7 +282,6 @@ launcher_weston_launch_destroy(struct weston_launcher *launcher_base)
 		wl_event_source_remove(launcher->source);
 	} else {
 		launcher_weston_launch_restore(&launcher->base);
-		wl_event_source_remove(launcher->vt_source);
 	}
 
 	if (launcher->tty >= 0)
-- 
2.6.1



More information about the wayland-devel mailing list