* src/smooth/ftgrays.c (gray_{find,set}_cell): Remove dubious code.

This commit is contained in:
Alexei Podtelezhnikov 2016-09-11 22:44:44 -04:00
parent 6ca54c6430
commit c38be52bf8
2 changed files with 4 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2016-09-11 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/smooth/ftgrays.c (gray_{find,set}_cell): Remove dubious code.
2016-09-11 Alexei Podtelezhnikov <apodtele@gmail.com>
[smooth] Fix valgrind warning and reoptimize.

View File

@ -511,9 +511,6 @@ typedef ptrdiff_t FT_PtrDist;
TCoord x = ras.ex;
if ( x > ras.max_ex )
x = ras.max_ex;
pcell = &ras.ycells[ras.ey - ras.min_ey];
for (;;)
{
@ -578,9 +575,6 @@ typedef ptrdiff_t FT_PtrDist;
/* All cells that are on the left of the clipping region go to the */
/* min_ex - 1 horizontal position. */
if ( ex > ras.max_ex )
ex = ras.max_ex;
if ( ex < ras.min_ex )
ex = ras.min_ex - 1;