From 387a9fe73dabcac45a11a55bb27fa0e8e7d81437 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 22 Sep 2014 06:42:24 +0200 Subject: [PATCH] [autofit] Minor code streamlining. * src/autofit/afhints.c (af_axis_hints_new_edge): Remove redundant initialization. --- ChangeLog | 7 +++++++ src/autofit/afhints.c | 7 ++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 14b5ed7a6..de1e06a1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2014-09-22 Werner Lemberg + + [autofit] Minor code streamlining. + + * src/autofit/afhints.c (af_axis_hints_new_edge): Remove redundant + initialization. + 2014-09-19 Alexei Podtelezhnikov * src/base/ftcalc.c: Harmonize code. diff --git a/src/autofit/afhints.c b/src/autofit/afhints.c index 88a97d45e..ec6142605 100644 --- 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, @@ -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;