shithub: freetype+ttf2subf

Download patch

ref: 387a9fe73dabcac45a11a55bb27fa0e8e7d81437
parent: 378266dc1ab1637095c4e140ee6fe74aa1e15b6d
author: Werner Lemberg <[email protected]>
date: Mon Sep 22 02:42:24 EDT 2014

[autofit] Minor code streamlining.

* src/autofit/afhints.c (af_axis_hints_new_edge): Remove redundant
initialization.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-09-22  Werner Lemberg  <[email protected]>
+
+	[autofit] Minor code streamlining.
+
+	* src/autofit/afhints.c (af_axis_hints_new_edge): Remove redundant
+	initialization.
+
 2014-09-19  Alexei Podtelezhnikov  <[email protected]>
 
 	* src/base/ftcalc.c: Harmonize code.
--- a/src/autofit/afhints.c
+++ b/src/autofit/afhints.c
@@ -74,7 +74,8 @@
   }
 
 
-  /* Get new edge for given axis, direction, and position. */
+  /* Get new edge for given axis, direction, and position, */
+  /* without initializing the edge itself.                 */
 
   FT_LOCAL( FT_Error )
   af_axis_hints_new_edge( AF_AxisHints  axis,
@@ -129,10 +130,6 @@
     }
 
     axis->num_edges++;
-
-    FT_ZERO( edge );
-    edge->fpos = (FT_Short)fpos;
-    edge->dir  = (FT_Char)dir;
 
   Exit:
     *anedge = edge;