ref: c38be52bf8de3b1699d74932b849bf150265819e
parent: 6ca54c643094800c1915dd856b9ea36276fe1e97
author: Alexei Podtelezhnikov <[email protected]>
date: Sun Sep 11 18:44:44 EDT 2016
* src/smooth/ftgrays.c (gray_{find,set}_cell): Remove dubious code.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2016-09-11 Alexei Podtelezhnikov <[email protected]>
+ * src/smooth/ftgrays.c (gray_{find,set}_cell): Remove dubious code.
+
+2016-09-11 Alexei Podtelezhnikov <[email protected]>
+
[smooth] Fix valgrind warning and reoptimize.
The algorithm calls `gray_set_cell' at the start of each new contour
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -511,9 +511,6 @@
TCoord x = ras.ex;
- if ( x > ras.max_ex )
- x = ras.max_ex;
-
pcell = &ras.ycells[ras.ey - ras.min_ey];
for (;;)
{
@@ -577,9 +574,6 @@
/* 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;