summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ã…dahl <jadahl@gmail.com>2022-05-28 23:41:19 +0200
committerRobert Mader <robert.mader@posteo.de>2022-12-17 15:13:48 +0100
commit82abee5ad7b4090344b54e9ef8bdf1c586daabdc (patch)
tree6cbfb52c23d6250f00c99bc93713ba7378642589
parentf8376a43d37e4a2651d1801d993d58d88c317697 (diff)
downloadmutter-82abee5ad7b4090344b54e9ef8bdf1c586daabdc.tar.gz
wayland: Remove meta_wayland_compositor_get_default()
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2718>
-rw-r--r--src/wayland/meta-wayland.c15
-rw-r--r--src/wayland/meta-wayland.h3
2 files changed, 0 insertions, 18 deletions
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index fea5526b6..358a0d68c 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -66,21 +66,6 @@ typedef struct _MetaWaylandCompositorPrivate
G_DEFINE_TYPE_WITH_PRIVATE (MetaWaylandCompositor, meta_wayland_compositor,
G_TYPE_OBJECT)
-MetaWaylandCompositor *
-meta_wayland_compositor_get_default (void)
-{
- MetaBackend *backend;
- MetaContext *context;
- MetaWaylandCompositor *wayland_compositor;
-
- backend = meta_get_backend ();
- context = meta_backend_get_context (backend);
- wayland_compositor = meta_context_get_wayland_compositor (context);
- g_assert (wayland_compositor);
-
- return wayland_compositor;
-}
-
typedef struct
{
GSource source;
diff --git a/src/wayland/meta-wayland.h b/src/wayland/meta-wayland.h
index 7582389e1..d7c44fef9 100644
--- a/src/wayland/meta-wayland.h
+++ b/src/wayland/meta-wayland.h
@@ -39,9 +39,6 @@ void meta_wayland_compositor_prepare_shutdown (MetaWaylandCom
void meta_wayland_compositor_init_display (MetaWaylandCompositor *compositor,
MetaDisplay *display);
-META_EXPORT_TEST
-MetaWaylandCompositor *meta_wayland_compositor_get_default (void);
-
void meta_wayland_compositor_update (MetaWaylandCompositor *compositor,
const ClutterEvent *event);