From: Behdad Esfahbod Date: Mon, 29 Dec 2008 23:58:29 +0000 (-0500) Subject: Remove special-casing of FC_FILE in FcPatternPrint() X-Git-Tag: 2.7.0~145 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f9806ab4b9bfa88a782008156511e29f37ce967d;p=fontconfig.git 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. --- 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");