[autofit] Minor code streamlining.

* src/autofit/afhints.c (af_axis_hints_new_edge): Remove redundant
initialization.
This commit is contained in:
Werner Lemberg 2014-09-22 06:42:24 +02:00
parent 378266dc1a
commit 387a9fe73d
2 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2014-09-22 Werner Lemberg <wl@gnu.org>
[autofit] Minor code streamlining.
* src/autofit/afhints.c (af_axis_hints_new_edge): Remove redundant
initialization.
2014-09-19 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/base/ftcalc.c: Harmonize code.

View File

@ -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,
@ -130,10 +131,6 @@
axis->num_edges++;
FT_ZERO( edge );
edge->fpos = (FT_Short)fpos;
edge->dir = (FT_Char)dir;
Exit:
*anedge = edge;
return error;