miext: Remove if check which is always true

In both cases we check for width > 0 just above, and the variable is not
modified between the checks, so the condition is always true.

Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
This commit is contained in:
Povilas Kanapickas 2021-03-25 22:57:56 +02:00
parent 99e7ccffb3
commit ba51acb1de
1 changed files with 2 additions and 8 deletions

View File

@ -1243,10 +1243,7 @@ RootlessPolyText8(DrawablePtr dst, GCPtr pGC,
box.x2 = dst->x + x + FONTMAXBOUNDS(pGC->font, rightSideBearing);
if (count > 1) {
if (width > 0)
box.x2 += width;
else
box.x1 += width;
box.x2 += width;
}
box.y1 = dst->y + y - FONTMAXBOUNDS(pGC->font, ascent);
@ -1334,10 +1331,7 @@ RootlessPolyText16(DrawablePtr dst, GCPtr pGC,
box.x2 = dst->x + x + FONTMAXBOUNDS(pGC->font, rightSideBearing);
if (count > 1) {
if (width > 0)
box.x2 += width;
else
box.x1 += width;
box.x2 += width;
}
box.y1 = dst->y + y - FONTMAXBOUNDS(pGC->font, ascent);