From: Benjamin Otte Date: Sun, 23 Jul 2023 20:30:26 +0000 (+0200) Subject: vulkan: Remove unused variable X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~21^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1aa7f18b231b94eac8f0d812f6ea452f7aec57a8;p=gtk4.git vulkan: Remove unused variable It's only used when printing debug stuff. Debug stuff is not that important. --- diff --git a/gsk/vulkan/gskvulkanglyphcache.c b/gsk/vulkan/gskvulkanglyphcache.c index a86d197e06..693e3b6166 100644 --- a/gsk/vulkan/gskvulkanglyphcache.c +++ b/gsk/vulkan/gskvulkanglyphcache.c @@ -30,7 +30,6 @@ typedef struct { GskVulkanImage *image; int width, height; int x, y, y0; - int num_glyphs; guint old_pixels; } Atlas; @@ -70,7 +69,6 @@ create_atlas (GskVulkanGlyphCache *cache) atlas->y = 0; atlas->x = 0; atlas->image = NULL; - atlas->num_glyphs = 0; atlas->image = gsk_vulkan_image_new_for_atlas (cache->vulkan, atlas->width, atlas->height); @@ -213,8 +211,6 @@ add_to_cache (GskVulkanGlyphCache *cache, atlas->x = atlas->x + width_with_padding; atlas->y = MAX (atlas->y, atlas->y0 + height_with_padding); - atlas->num_glyphs++; - gsk_vulkan_upload_glyph_op (render, atlas->image, &(cairo_rectangle_int_t) { @@ -239,9 +235,8 @@ add_to_cache (GskVulkanGlyphCache *cache, for (i = 0; i < cache->atlases->len; i++) { atlas = g_ptr_array_index (cache->atlases, i); - g_print ("\tAtlas %d (%dx%d): %d glyphs, %.2g%% old pixels, filled to %d, %d / %d\n", + g_print ("\tAtlas %d (%dx%d): %.2g%% old pixels, filled to %d, %d / %d\n", i, atlas->width, atlas->height, - atlas->num_glyphs, 100.0 * (double)atlas->old_pixels / (double)(atlas->width * atlas->height), atlas->x, atlas->y0, atlas->y); }