Remove abort from FcCompareSize.

There doesn't appear to be a good reason to abort when 'v1' has type
FcTypeRange. If there does turn out to be a good reason for this then it
should be better documented and the code for handling this case removed.
At worst it seems -1 should be returned as it is for other unknown
types. It is possible this is left over debug code from the initial
implementation.
This commit is contained in:
Ben Wagner 2020-12-04 15:42:28 -05:00 committed by Akira TAGOH
parent 3d6926380d
commit 97d5418554
1 changed files with 0 additions and 1 deletions

View File

@ -235,7 +235,6 @@ FcCompareSize (const FcValue *v1, const FcValue *v2, FcValue *bestValue)
b1 = e1 = value1.u.d; b1 = e1 = value1.u.d;
break; break;
case FcTypeRange: case FcTypeRange:
abort();
b1 = value1.u.r->begin; b1 = value1.u.r->begin;
e1 = value1.u.r->end; e1 = value1.u.r->end;
break; break;