desktop: Remove dead code 34/27434/1
authorMarius Vlad <marius.vlad@collabora.com>
Tue, 3 May 2022 08:33:10 +0000 (11:33 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Tue, 3 May 2022 15:17:26 +0000 (18:17 +0300)
Some dead code artefacts, no need to keep these in.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Idca7f858592b422a0e028ed03e10f4bb418bcb40

src/desktop.c
src/shell.c

index 3b83d4c..28ef52b 100644 (file)
 
 #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)
 {
index bf14302..6ec444a 100644 (file)
@@ -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");