vulkan: Remove unused variable
authorBenjamin Otte <otte@redhat.com>
Sun, 23 Jul 2023 20:30:26 +0000 (22:30 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 31 Jul 2023 14:51:03 +0000 (16:51 +0200)
It's only used when printing debug stuff. Debug stuff is not that
important.

gsk/vulkan/gskvulkanglyphcache.c

index a86d197e0656534861d71bbc585176fdf11b70a3..693e3b6166fdb75ea45c56c5acde7823cc9eb222 100644 (file)
@@ -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);
         }