[metacity] compositor: remove remove_window vfunc
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] compositor: remove remove_window vfunc
- Date: Tue, 22 Oct 2019 23:48:40 +0000 (UTC)
commit e2070a3ef928e71c9458e81bfbaa1f9f46a0e1cc
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Oct 23 00:54:56 2019 +0300
compositor: remove remove_window vfunc
src/compositor/meta-compositor-none.c | 7 -------
src/compositor/meta-compositor-private.h | 3 ---
src/compositor/meta-compositor-vulkan.c | 7 -------
src/compositor/meta-compositor-xrender.c | 7 -------
src/compositor/meta-compositor.c | 2 --
5 files changed, 26 deletions(-)
---
diff --git a/src/compositor/meta-compositor-none.c b/src/compositor/meta-compositor-none.c
index 6160b08d..f2a18cba 100644
--- a/src/compositor/meta-compositor-none.c
+++ b/src/compositor/meta-compositor-none.c
@@ -40,12 +40,6 @@ meta_compositor_none_add_window (MetaCompositor *compositor,
return NULL;
}
-static void
-meta_compositor_none_remove_window (MetaCompositor *compositor,
- MetaSurface *surface)
-{
-}
-
static void
meta_compositor_none_hide_window (MetaCompositor *compositor,
MetaSurface *surface,
@@ -80,7 +74,6 @@ meta_compositor_none_class_init (MetaCompositorNoneClass *none_class)
compositor_class->manage = meta_compositor_none_manage;
compositor_class->add_window = meta_compositor_none_add_window;
- compositor_class->remove_window = meta_compositor_none_remove_window;
compositor_class->hide_window = meta_compositor_none_hide_window;
compositor_class->process_event = meta_compositor_none_process_event;
compositor_class->sync_screen_size = meta_compositor_none_sync_screen_size;
diff --git a/src/compositor/meta-compositor-private.h b/src/compositor/meta-compositor-private.h
index 6bfbd9ab..5d2e9dba 100644
--- a/src/compositor/meta-compositor-private.h
+++ b/src/compositor/meta-compositor-private.h
@@ -35,9 +35,6 @@ struct _MetaCompositorClass
MetaSurface * (* add_window) (MetaCompositor *compositor,
MetaWindow *window);
- void (* remove_window) (MetaCompositor *compositor,
- MetaSurface *surface);
-
void (* hide_window) (MetaCompositor *compositor,
MetaSurface *surface,
MetaEffectType effect);
diff --git a/src/compositor/meta-compositor-vulkan.c b/src/compositor/meta-compositor-vulkan.c
index 28e44df5..e408d452 100644
--- a/src/compositor/meta-compositor-vulkan.c
+++ b/src/compositor/meta-compositor-vulkan.c
@@ -1275,12 +1275,6 @@ meta_compositor_vulkan_add_window (MetaCompositor *compositor,
return surface;
}
-static void
-meta_compositor_vulkan_remove_window (MetaCompositor *compositor,
- MetaSurface *surface)
-{
-}
-
static void
meta_compositor_vulkan_hide_window (MetaCompositor *compositor,
MetaSurface *surface,
@@ -1325,7 +1319,6 @@ meta_compositor_vulkan_class_init (MetaCompositorVulkanClass *vulkan_class)
compositor_class->manage = meta_compositor_vulkan_manage;
compositor_class->add_window = meta_compositor_vulkan_add_window;
- compositor_class->remove_window = meta_compositor_vulkan_remove_window;
compositor_class->hide_window = meta_compositor_vulkan_hide_window;
compositor_class->process_event = meta_compositor_vulkan_process_event;
compositor_class->sync_screen_size = meta_compositor_vulkan_sync_screen_size;
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index 0524490b..a1586e8e 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -1084,12 +1084,6 @@ meta_compositor_xrender_add_window (MetaCompositor *compositor,
return surface;
}
-static void
-meta_compositor_xrender_remove_window (MetaCompositor *compositor,
- MetaSurface *surface)
-{
-}
-
static void
meta_compositor_xrender_hide_window (MetaCompositor *compositor,
MetaSurface *surface,
@@ -1191,7 +1185,6 @@ meta_compositor_xrender_class_init (MetaCompositorXRenderClass *xrender_class)
compositor_class->manage = meta_compositor_xrender_manage;
compositor_class->add_window = meta_compositor_xrender_add_window;
- compositor_class->remove_window = meta_compositor_xrender_remove_window;
compositor_class->hide_window = meta_compositor_xrender_hide_window;
compositor_class->process_event = meta_compositor_xrender_process_event;
compositor_class->sync_screen_size = meta_compositor_xrender_sync_screen_size;
diff --git a/src/compositor/meta-compositor.c b/src/compositor/meta-compositor.c
index fe65ef32..3a68b8f6 100644
--- a/src/compositor/meta-compositor.c
+++ b/src/compositor/meta-compositor.c
@@ -434,8 +434,6 @@ meta_compositor_remove_window (MetaCompositor *compositor,
if (surface == NULL)
return;
- META_COMPOSITOR_GET_CLASS (compositor)->remove_window (compositor, surface);
-
priv->stack = g_list_remove (priv->stack, surface);
g_hash_table_remove (priv->surfaces, window);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]