summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2011-02-24 05:52:14 +0100
committerWerner Lemberg <wl@gnu.org>2011-02-24 05:52:14 +0100
commit6c28689691e19ce9cbaa86e59adc339399ce4d9d (patch)
tree59f1dff1eeaa77a94f6cefaf3f04c26dd6920db4
parentf42cc539e04bb2e991cef8f427049c34f7efae10 (diff)
[autofit] Comment out unused code.
* src/autofit/aflatin.c, src/autofit/aflatin2.c (af_latin_hints_compute_edges): Do it.
-rw-r--r--ChangeLog7
-rw-r--r--src/autofit/aflatin.c6
-rw-r--r--src/autofit/aflatin2.c8
3 files changed, 18 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index ecdbd90c..6d159715 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2011-02-24 Werner Lemberg <wl@gnu.org>
+ [autofit] Comment out unused code.
+
+ * src/autofit/aflatin.c, src/autofit/aflatin2.c
+ (af_latin_hints_compute_edges): Do it.
+
+2011-02-24 Werner Lemberg <wl@gnu.org>
+
* src/autofit/afhints.h (AF_GlyphHints): Remove unused field.
2011-02-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index 63491e31..c83ea2e5 100644
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -4,7 +4,7 @@
/* */
/* Auto-fitter hinting routines for latin script (body). */
/* */
-/* Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by */
+/* Copyright 2003-2011 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -1131,8 +1131,10 @@
{
FT_Int is_round = 0; /* does it contain round segments? */
FT_Int is_straight = 0; /* does it contain straight segments? */
+#if 0
FT_Pos ups = 0; /* number of upwards segments */
FT_Pos downs = 0; /* number of downwards segments */
+#endif
seg = edge->first;
@@ -1148,11 +1150,13 @@
else
is_straight++;
+#if 0
/* check for segment direction */
if ( seg->dir == up_dir )
ups += seg->max_coord-seg->min_coord;
else
downs += seg->max_coord-seg->min_coord;
+#endif
/* check for links -- if seg->serif is set, then seg->link must */
/* be ignored */
diff --git a/src/autofit/aflatin2.c b/src/autofit/aflatin2.c
index 4a8af0c0..55a05bde 100644
--- a/src/autofit/aflatin2.c
+++ b/src/autofit/aflatin2.c
@@ -1,10 +1,10 @@
/***************************************************************************/
/* */
-/* aflatin.c */
+/* aflatin2.c */
/* */
/* Auto-fitter hinting routines for latin script (body). */
/* */
-/* Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 by */
+/* Copyright 2003-2011 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
@@ -1210,8 +1210,10 @@
{
FT_Int is_round = 0; /* does it contain round segments? */
FT_Int is_straight = 0; /* does it contain straight segments? */
+#if 0
FT_Pos ups = 0; /* number of upwards segments */
FT_Pos downs = 0; /* number of downwards segments */
+#endif
seg = edge->first;
@@ -1227,11 +1229,13 @@
else
is_straight++;
+#if 0
/* check for segment direction */
if ( seg->dir == up_dir )
ups += seg->max_coord-seg->min_coord;
else
downs += seg->max_coord-seg->min_coord;
+#endif
/* check for links -- if seg->serif is set, then seg->link must */
/* be ignored */