From 4d7aedf90a742be076c2151dd6d5e519641ae08a Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Mon, 7 Nov 2022 11:55:51 +0100 Subject: [PATCH] compositor: Drop debug helpers They can no longer be used as libmutter will drop it gdk/gtk dependencies in the upcoming commits Part-of: --- src/compositor/meta-window-actor.c | 41 ------------------------------ 1 file changed, 41 deletions(-) diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c index 29842cd76..673125802 100644 --- a/src/compositor/meta-window-actor.c +++ b/src/compositor/meta-window-actor.c @@ -980,47 +980,6 @@ meta_window_actor_size_change (MetaWindowActor *self, priv->size_change_in_progress--; } -#if 0 -/* Print out a region; useful for debugging */ -static void -print_region (cairo_region_t *region) -{ - int n_rects; - int i; - - n_rects = cairo_region_num_rectangles (region); - g_print ("["); - for (i = 0; i < n_rects; i++) - { - cairo_rectangle_int_t rect; - cairo_region_get_rectangle (region, i, &rect); - g_print ("+%d+%dx%dx%d ", - rect.x, rect.y, rect.width, rect.height); - } - g_print ("]\n"); -} -#endif - -#if 0 -/* Dump a region to a PNG file; useful for debugging */ -static void -see_region (cairo_region_t *region, - int width, - int height, - char *filename) -{ - cairo_surface_t *surface = cairo_image_surface_create (CAIRO_FORMAT_A8, width, height); - cairo_t *cr = cairo_create (surface); - - gdk_cairo_region (cr, region); - cairo_fill (cr); - - cairo_surface_write_to_png (surface, filename); - cairo_destroy (cr); - cairo_surface_destroy (surface); -} -#endif - void meta_window_actor_sync_visibility (MetaWindowActor *self) {