ref: c217bf19f02f0d0442bd58516dfab4fabf74ed2c
parent: e30de299f28370ed5aa65755c6be69da58eefc72
author: Werner Lemberg <[email protected]>
date: Wed May 26 12:16:34 EDT 2010
Remove unused variable. Found by Graham. * src/autofit/afhints.c (af_glyph_hints_reload): Remove unused variable `first' in first block.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-05-26 Werner Lemberg <[email protected]>
+
+ Remove unused variable.
+ Found by Graham.
+
+ * src/autofit/afhints.c (af_glyph_hints_reload): Remove unused
+ variable `first' in first block.
+
2010-05-22 Werner Lemberg <[email protected]>
Fix various memory problems found by linuxtesting.org.
--- a/src/autofit/afhints.c
+++ b/src/autofit/afhints.c
@@ -524,13 +524,11 @@
{
FT_Vector* vec = outline->points;
char* tag = outline->tags;
- AF_Point first = points;
AF_Point end = points + outline->contours[0];
AF_Point prev = end;
FT_Int contour_index = 0;
- FT_UNUSED( first );
for ( point = points; point < point_limit; point++, vec++, tag++ )
{
point->fx = (FT_Short)vec->x;
@@ -558,9 +556,8 @@
{
if ( ++contour_index < outline->n_contours )
{
- first = point + 1;
- end = points + outline->contours[contour_index];
- prev = end;
+ end = points + outline->contours[contour_index];
+ prev = end;
}
}
}