[pango/more-test-coverage2: 3/15] utils: Remove leftover code




commit 2430515cad2bc8e4cc8f511e41dd03f197afee0d
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jul 6 14:44:19 2021 -0400

    utils: Remove leftover code
    
    pango-segmentation is not a test, so don't call
    g_test_message.

 utils/pango-segmentation.c | 11 -----------
 1 file changed, 11 deletions(-)
---
diff --git a/utils/pango-segmentation.c b/utils/pango-segmentation.c
index 6931d180..0d5b5a49 100644
--- a/utils/pango-segmentation.c
+++ b/utils/pango-segmentation.c
@@ -83,17 +83,6 @@ show_segmentation (const char *input,
   pango_layout_set_text (layout, text, length);
   pango_layout_set_attributes (layout, attributes);
 
-  if (pango_layout_get_unknown_glyphs_count (layout) > 0)
-    {
-      char *msg = g_strdup_printf ("Missing glyphs - skipping. Maybe fonts are missing?");
-      g_test_skip (msg);
-      g_free (msg);
-      g_object_unref (layout);
-      pango_attr_list_unref (attributes);
-      g_free (text);
-      return FALSE;
-    }
-
   pango_layout_get_log_attrs (layout, &attrs, &len);
 
   for (i = 0, p = text; i < len; i++, p = g_utf8_next_char (p))


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