shithub: freetype+ttf2subf

Download patch

ref: 58d1a5ee74d17019defecad4bf89dac44910933a
parent: fe0f16d2957932751709cd70adee5480277a0e2c
author: Werner Lemberg <[email protected]>
date: Wed Jun 8 05:32:56 EDT 2011

[autofit] Remove unused structure member.

* src/autofit/afhints.h (AF_SegmentRec): Remove `contour'.
* src/autofit/aflatin.c (af_latin_hints_compute_segments),
src/autofit/aflatin2.c (af_latin2_hints_compute_segments): Updated.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-06-08  Werner Lemberg  <[email protected]>
+
+	[autofit] Remove unused structure member.
+
+	* src/autofit/afhints.h (AF_SegmentRec): Remove `contour'. 
+	* src/autofit/aflatin.c (af_latin_hints_compute_segments),
+	src/autofit/aflatin2.c (af_latin2_hints_compute_segments): Updated.
+
 2011-05-30  Werner Lemberg  <[email protected]>
 
 	Fix g++ 4.6 compilation.
--- a/src/autofit/afhints.h
+++ b/src/autofit/afhints.h
@@ -282,9 +282,8 @@
     FT_Pos      score;       /* used during stem matching  */
     FT_Pos      len;         /* used during stem matching  */
 
-    AF_Point    first;       /* first point in edge segment             */
-    AF_Point    last;        /* last point in edge segment              */
-    AF_Point*   contour;     /* ptr to first point of segment's contour */
+    AF_Point    first;       /* first point in edge segment */
+    AF_Point    last;        /* last point in edge segment  */
 
   } AF_SegmentRec;
 
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -872,7 +872,6 @@
           min_pos = max_pos = point->u;
           segment->first    = point;
           segment->last     = point;
-          segment->contour  = contour;
           on_edge           = 1;
         }
 
--- a/src/autofit/aflatin2.c
+++ b/src/autofit/aflatin2.c
@@ -796,7 +796,6 @@
         segment->dir       = first->out_dir;
         segment->first     = first;
         segment->last      = point;
-        segment->contour   = contour;
         segment->pos       = (FT_Short)(( min_u + max_u ) >> 1);
         segment->min_coord = (FT_Short) min_v;
         segment->max_coord = (FT_Short) max_v;