[metacity] compositor: remove show_window vfunc
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] compositor: remove show_window vfunc
- Date: Fri, 18 Oct 2019 23:45:52 +0000 (UTC)
commit 45c21c37c19978cb85cff2aec333c8472b7f4e01
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Oct 18 23:35:59 2019 +0300
compositor: remove show_window vfunc
src/compositor/meta-compositor-none.c | 8 --------
src/compositor/meta-compositor-private.h | 4 ----
src/compositor/meta-compositor-vulkan.c | 8 --------
src/compositor/meta-compositor-xrender.c | 8 --------
src/compositor/meta-compositor.c | 3 ---
5 files changed, 31 deletions(-)
---
diff --git a/src/compositor/meta-compositor-none.c b/src/compositor/meta-compositor-none.c
index 0c45ca54..b3bcc0ce 100644
--- a/src/compositor/meta-compositor-none.c
+++ b/src/compositor/meta-compositor-none.c
@@ -46,13 +46,6 @@ meta_compositor_none_remove_window (MetaCompositor *compositor,
{
}
-static void
-meta_compositor_none_show_window (MetaCompositor *compositor,
- MetaSurface *surface,
- MetaEffectType effect)
-{
-}
-
static void
meta_compositor_none_hide_window (MetaCompositor *compositor,
MetaSurface *surface,
@@ -112,7 +105,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->show_window = meta_compositor_none_show_window;
compositor_class->hide_window = meta_compositor_none_hide_window;
compositor_class->window_opacity_changed = meta_compositor_none_window_opacity_changed;
compositor_class->set_updates_frozen = meta_compositor_none_set_updates_frozen;
diff --git a/src/compositor/meta-compositor-private.h b/src/compositor/meta-compositor-private.h
index 70b3d8f5..4bfd4ada 100644
--- a/src/compositor/meta-compositor-private.h
+++ b/src/compositor/meta-compositor-private.h
@@ -38,10 +38,6 @@ struct _MetaCompositorClass
void (* remove_window) (MetaCompositor *compositor,
MetaWindow *window);
- void (* show_window) (MetaCompositor *compositor,
- MetaSurface *surface,
- MetaEffectType effect);
-
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 e8295b6c..e92de311 100644
--- a/src/compositor/meta-compositor-vulkan.c
+++ b/src/compositor/meta-compositor-vulkan.c
@@ -1281,13 +1281,6 @@ meta_compositor_vulkan_remove_window (MetaCompositor *compositor,
{
}
-static void
-meta_compositor_vulkan_show_window (MetaCompositor *compositor,
- MetaSurface *surface,
- MetaEffectType effect)
-{
-}
-
static void
meta_compositor_vulkan_hide_window (MetaCompositor *compositor,
MetaSurface *surface,
@@ -1351,7 +1344,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->show_window = meta_compositor_vulkan_show_window;
compositor_class->hide_window = meta_compositor_vulkan_hide_window;
compositor_class->window_opacity_changed = meta_compositor_vulkan_window_opacity_changed;
compositor_class->set_updates_frozen = meta_compositor_vulkan_set_updates_frozen;
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index 12f54749..2b03bea6 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -1665,13 +1665,6 @@ meta_compositor_xrender_remove_window (MetaCompositor *compositor,
g_hash_table_remove (xrender->windows_by_xid, (gpointer) xwindow);
}
-static void
-meta_compositor_xrender_show_window (MetaCompositor *compositor,
- MetaSurface *surface,
- MetaEffectType effect)
-{
-}
-
static void
meta_compositor_xrender_hide_window (MetaCompositor *compositor,
MetaSurface *surface,
@@ -1883,7 +1876,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->show_window = meta_compositor_xrender_show_window;
compositor_class->hide_window = meta_compositor_xrender_hide_window;
compositor_class->window_opacity_changed = meta_compositor_xrender_window_opacity_changed;
compositor_class->set_updates_frozen = meta_compositor_xrender_set_updates_frozen;
diff --git a/src/compositor/meta-compositor.c b/src/compositor/meta-compositor.c
index b10b62a4..30e69e07 100644
--- a/src/compositor/meta-compositor.c
+++ b/src/compositor/meta-compositor.c
@@ -437,17 +437,14 @@ meta_compositor_show_window (MetaCompositor *compositor,
MetaEffectType effect)
{
MetaCompositorPrivate *priv;
- MetaCompositorClass *compositor_class;
MetaSurface *surface;
priv = meta_compositor_get_instance_private (compositor);
- compositor_class = META_COMPOSITOR_GET_CLASS (compositor);
surface = g_hash_table_lookup (priv->surfaces, window);
if (surface == NULL)
return;
- compositor_class->show_window (compositor, surface, effect);
meta_surface_show (surface);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]