From: Marius Vlad Date: Tue, 3 May 2022 08:33:10 +0000 (+0300) Subject: desktop: Remove dead code X-Git-Tag: 13.93.0~19 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=40f5e3bbfac73375bc4f881b3a168fb0d9297c9b;p=src%2Fagl-compositor.git desktop: Remove dead code Some dead code artefacts, no need to keep these in. Signed-off-by: Marius Vlad Change-Id: Idca7f858592b422a0e028ed03e10f4bb418bcb40 --- diff --git a/src/desktop.c b/src/desktop.c index 3b83d4c..28ef52b 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -33,18 +33,6 @@ #include "agl-shell-desktop-server-protocol.h" -#if 0 -static struct weston_output * -get_default_output(struct weston_compositor *compositor) -{ - if (wl_list_empty(&compositor->output_list)) - return NULL; - - return wl_container_of(compositor->output_list.next, - struct weston_output, link); -} -#endif - static void desktop_advertise_app(struct wl_listener *listener, void *data) { diff --git a/src/shell.c b/src/shell.c index bf14302..6ec444a 100644 --- a/src/shell.c +++ b/src/shell.c @@ -1338,14 +1338,6 @@ bind_agl_shell(struct wl_client *client, return; } -#if 0 - if (ivi->shell_client.client != client) { - wl_resource_post_error(resource, WL_DISPLAY_ERROR_INVALID_OBJECT, - "client not authorized to use agl_shell"); - return; - } -#endif - if (ivi->shell_client.resource) { wl_resource_post_error(resource, WL_DISPLAY_ERROR_INVALID_OBJECT, "agl_shell has already been bound");