[metacity] compositor: remove sync_window_geometry vfunc



commit 06426e2cad01cbdf5b84873259decc011ea10629
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Oct 23 00:51:54 2019 +0300

    compositor: remove sync_window_geometry vfunc

 src/compositor/meta-compositor-none.c    | 7 -------
 src/compositor/meta-compositor-vulkan.c  | 7 -------
 src/compositor/meta-compositor-xrender.c | 7 -------
 src/compositor/meta-compositor.c         | 3 ---
 4 files changed, 24 deletions(-)
---
diff --git a/src/compositor/meta-compositor-none.c b/src/compositor/meta-compositor-none.c
index 63114daf..4fd316ff 100644
--- a/src/compositor/meta-compositor-none.c
+++ b/src/compositor/meta-compositor-none.c
@@ -71,12 +71,6 @@ meta_compositor_none_sync_screen_size (MetaCompositor *compositor)
 {
 }
 
-static void
-meta_compositor_none_sync_window_geometry (MetaCompositor *compositor,
-                                           MetaSurface    *surface)
-{
-}
-
 static void
 meta_compositor_none_redraw (MetaCompositor *compositor,
                              XserverRegion   all_damage)
@@ -97,7 +91,6 @@ meta_compositor_none_class_init (MetaCompositorNoneClass *none_class)
   compositor_class->window_opacity_changed = meta_compositor_none_window_opacity_changed;
   compositor_class->process_event = meta_compositor_none_process_event;
   compositor_class->sync_screen_size = meta_compositor_none_sync_screen_size;
-  compositor_class->sync_window_geometry = meta_compositor_none_sync_window_geometry;
   compositor_class->redraw = meta_compositor_none_redraw;
 }
 
diff --git a/src/compositor/meta-compositor-vulkan.c b/src/compositor/meta-compositor-vulkan.c
index 70ace60d..5b0f93e4 100644
--- a/src/compositor/meta-compositor-vulkan.c
+++ b/src/compositor/meta-compositor-vulkan.c
@@ -1306,12 +1306,6 @@ meta_compositor_vulkan_sync_screen_size (MetaCompositor *compositor)
 {
 }
 
-static void
-meta_compositor_vulkan_sync_window_geometry (MetaCompositor *compositor,
-                                             MetaSurface    *surface)
-{
-}
-
 static void
 meta_compositor_vulkan_pre_paint (MetaCompositor *compositor)
 {
@@ -1342,7 +1336,6 @@ meta_compositor_vulkan_class_init (MetaCompositorVulkanClass *vulkan_class)
   compositor_class->window_opacity_changed = meta_compositor_vulkan_window_opacity_changed;
   compositor_class->process_event = meta_compositor_vulkan_process_event;
   compositor_class->sync_screen_size = meta_compositor_vulkan_sync_screen_size;
-  compositor_class->sync_window_geometry = meta_compositor_vulkan_sync_window_geometry;
   compositor_class->pre_paint = meta_compositor_vulkan_pre_paint;
   compositor_class->redraw = meta_compositor_vulkan_redraw;
 }
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index be00d311..d30b2eec 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -1150,12 +1150,6 @@ meta_compositor_xrender_sync_screen_size (MetaCompositor *compositor)
   meta_compositor_damage_screen (compositor);
 }
 
-static void
-meta_compositor_xrender_sync_window_geometry (MetaCompositor *compositor,
-                                              MetaSurface    *surface)
-{
-}
-
 static void
 meta_compositor_xrender_pre_paint (MetaCompositor *compositor)
 {
@@ -1208,7 +1202,6 @@ meta_compositor_xrender_class_init (MetaCompositorXRenderClass *xrender_class)
   compositor_class->window_opacity_changed = meta_compositor_xrender_window_opacity_changed;
   compositor_class->process_event = meta_compositor_xrender_process_event;
   compositor_class->sync_screen_size = meta_compositor_xrender_sync_screen_size;
-  compositor_class->sync_window_geometry = meta_compositor_xrender_sync_window_geometry;
   compositor_class->pre_paint = meta_compositor_xrender_pre_paint;
   compositor_class->redraw = meta_compositor_xrender_redraw;
 }
diff --git a/src/compositor/meta-compositor.c b/src/compositor/meta-compositor.c
index 41324961..8a10c046 100644
--- a/src/compositor/meta-compositor.c
+++ b/src/compositor/meta-compositor.c
@@ -697,17 +697,14 @@ meta_compositor_sync_window_geometry (MetaCompositor *compositor,
                                       MetaWindow     *window)
 {
   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->sync_window_geometry (compositor, surface);
   meta_surface_sync_geometry (surface);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]