weston-launch: Remove unused event source

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@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
dev
Derek Foreman 9 years ago committed by Bryce Harrington
parent 1ab9ca7e01
commit fa41eec4f7
  1. 2
      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)

Loading…
Cancel
Save