freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master c38be52: * src/smooth/ftgrays.c (gray_{find, set}_cel


From: Alexei Podtelezhnikov
Subject: [freetype2] master c38be52: * src/smooth/ftgrays.c (gray_{find, set}_cell): Remove dubious code.
Date: Mon, 12 Sep 2016 02:46:03 +0000 (UTC)

branch: master
commit c38be52bf8de3b1699d74932b849bf150265819e
Author: Alexei Podtelezhnikov <address@hidden>
Commit: Alexei Podtelezhnikov <address@hidden>

    * src/smooth/ftgrays.c (gray_{find,set}_cell): Remove dubious code.
---
 ChangeLog            |    4 ++++
 src/smooth/ftgrays.c |    6 ------
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d2a9efe..d442f7b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2016-09-11  Alexei Podtelezhnikov  <address@hidden>
 
+       * src/smooth/ftgrays.c (gray_{find,set}_cell): Remove dubious code.
+
+2016-09-11  Alexei Podtelezhnikov  <address@hidden>
+
        [smooth] Fix valgrind warning and reoptimize.
 
        The algorithm calls `gray_set_cell' at the start of each new contour
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index 8f85ec2..30fd4e2 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -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;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]