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.
This commit is contained in:
Behdad Esfahbod 2008-12-29 18:58:29 -05:00
parent 8ae1e3d5dc
commit f9806ab4b9
1 changed files with 1 additions and 20 deletions

View 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");