summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2022-05-03 11:33:10 +0300
committerMarius Vlad <marius.vlad@collabora.com>2022-05-03 18:17:26 +0300
commit40f5e3bbfac73375bc4f881b3a168fb0d9297c9b (patch)
tree3399899eeb7d5b76451f324497a616b64e636ea5
parent8f85581e96bc71512cbef015ff12dc6441c07d9c (diff)
desktop: Remove dead code
Some dead code artefacts, no need to keep these in. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Idca7f858592b422a0e028ed03e10f4bb418bcb40
-rw-r--r--src/desktop.c12
-rw-r--r--src/shell.c8
2 files changed, 0 insertions, 20 deletions
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");