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:
parent
8ae1e3d5dc
commit
f9806ab4b9
19
src/fcdbg.c
19
src/fcdbg.c
|
@ -146,25 +146,6 @@ FcPatternPrint (const FcPattern *p)
|
||||||
{
|
{
|
||||||
e = &FcPatternElts(p)[i];
|
e = &FcPatternElts(p)[i];
|
||||||
printf ("\t%s:", FcObjectName(e->object));
|
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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue