]> git.wh0rd.org Git - fontconfig.git/commitdiff
Remove special-casing of FC_FILE in FcPatternPrint()
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 29 Dec 2008 23:58:29 +0000 (18:58 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Sat, 14 Feb 2009 00:54:03 +0000 (16:54 -0800)
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

index 2a159696e8d571e88ec37974825e3e79025a7ee5..3f952ea4fda3d7fc5853349545a560048e7bec75 100644 (file)
@@ -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");