From f9806ab4b9bfa88a782008156511e29f37ce967d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 29 Dec 2008 18:58:29 -0500 Subject: [PATCH] Remove special-casing of FC_FILE in FcPatternPrint() I can't understand why the special case is needed. Indeed, removing it does not make any difference in the "fc-match --verbose" output, and that's the only time fc-match uses FcPatternPrint. --- src/fcdbg.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/fcdbg.c b/src/fcdbg.c index 2a15969..3f952ea 100644 --- a/src/fcdbg.c +++ b/src/fcdbg.c @@ -146,26 +146,7 @@ FcPatternPrint (const FcPattern *p) { e = &FcPatternElts(p)[i]; printf ("\t%s:", FcObjectName(e->object)); - /* so that fc-match properly displays file: foo... */ - if (e->object == FC_FILE_OBJECT) - { - FcChar8 * s; - FcPatternObjectGetString (p, FC_FILE_OBJECT, 0, &s); - printf (" \"%s\"", s); - switch (FcPatternEltValues(e)->binding) { - case FcValueBindingWeak: - printf ("(w)"); - break; - case FcValueBindingStrong: - printf ("(s)"); - break; - case FcValueBindingSame: - printf ("(=)"); - break; - } - } - else - FcValueListPrint (FcPatternEltValues(e)); + FcValueListPrint (FcPatternEltValues(e)); printf ("\n"); } printf ("\n"); -- 2.39.2