shithub: freetype+ttf2subf

Download patch

ref: 8b8c4408dd887c876e340635c10994ec67bd376f
parent: aab2b8d83ed88e4aa41e33d38d40513e27a336f9
author: Werner Lemberg <[email protected]>
date: Sat Jul 2 14:35:50 EDT 2016

[autofit] Remove unused structure members.

* src/autofit/afhints.h (AF_SegmentRec, AF_EdgeRec): Remove
`num_linked'.

* src/autofit/afcjk.c (af_cjk_hints_link_segments): Updated.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2016-07-02  Werner Lemberg  <[email protected]>
 
+	[autofit] Remove unused structure members.
+
+	* src/autofit/afhints.h (AF_SegmentRec, AF_EdgeRec): Remove
+	`num_linked'.
+
+	* src/autofit/afcjk.c (af_cjk_hints_link_segments): Updated.
+
+2016-07-02  Werner Lemberg  <[email protected]>
+
 	[autofit] Update to Unicode 9.0.0.
 
 	* src/autofit/afranges.c (af_arab_nonbase_uniranges,
--- a/src/autofit/afcjk.c
+++ b/src/autofit/afcjk.c
@@ -966,7 +966,6 @@
 
       if ( seg2 )
       {
-        seg2->num_linked++;
         if ( seg2->link != seg1 )
         {
           seg1->link = NULL;
@@ -973,8 +972,6 @@
 
           if ( seg2->score < dist_threshold || seg1->score < seg2->score * 4 )
             seg1->serif = seg2->link;
-          else
-            seg2->num_linked--;
         }
       }
     }
--- a/src/autofit/afhints.h
+++ b/src/autofit/afhints.h
@@ -269,7 +269,6 @@
 
     AF_Segment  link;        /* (stem) link segment        */
     AF_Segment  serif;       /* primary segment for serifs */
-    FT_Pos      num_linked;  /* number of linked segments  */
     FT_Pos      score;       /* used during stem matching  */
     FT_Pos      len;         /* used during stem matching  */
 
@@ -292,7 +291,6 @@
     AF_Width    blue_edge;  /* non-NULL if this is a blue edge */
     AF_Edge     link;       /* link edge                       */
     AF_Edge     serif;      /* primary edge for serifs         */
-    FT_Short    num_linked; /* number of linked edges          */
     FT_Int      score;      /* used during stem matching       */
 
     AF_Segment  first;      /* first segment in edge */