shithub: freetype+ttf2subf

Download patch

ref: 1f540eff0b1d62f2fcfff2da9af68f33c41fcf13
parent: 41821f8a8ae9961036101c6664ddb543eb3eaff5
author: Werner Lemberg <[email protected]>
date: Sat Jun 20 09:24:08 EDT 2009

Remove unused variables.

* include/freetype/internal/psaux.h (T1_BuilderRec),
src/cff/cffgload.h (CFF_Builder): Remove `last'.
Update all users.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2009-06-20  Werner Lemberg  <[email protected]>
 
+	Remove unused variables.
+
+	* include/freetype/internal/psaux.h (T1_BuilderRec),
+	src/cff/cffgload.h (CFF_Builder): Remove `last'.
+	Update all users.
+
+2009-06-20  Werner Lemberg  <[email protected]>
+
 	[psaux] Check large integers while parsing charstrings.
 
 	* src/psaux/t1decode.c (t1_decoder_parse_charstrings): Large
--- a/include/freetype/internal/psaux.h
+++ b/include/freetype/internal/psaux.h
@@ -533,8 +533,6 @@
   /*                                                                       */
   /*    max_contours :: Maximal number of contours in builder outline.     */
   /*                                                                       */
-  /*    last         :: The last point position.                           */
-  /*                                                                       */
   /*    pos_x        :: The horizontal translation (if composite glyph).   */
   /*                                                                       */
   /*    pos_y        :: The vertical translation (if composite glyph).     */
@@ -566,8 +564,6 @@
     FT_GlyphLoader  loader;
     FT_Outline*     base;
     FT_Outline*     current;
-
-    FT_Vector       last;
 
     FT_Pos          pos_x;
     FT_Pos          pos_y;
--- a/src/cff/cffgload.c
+++ b/src/cff/cffgload.c
@@ -472,8 +472,6 @@
       point->x = x >> 16;
       point->y = y >> 16;
       *control = (FT_Byte)( flag ? FT_CURVE_TAG_ON : FT_CURVE_TAG_CUBIC );
-
-      builder->last = *point;
     }
 
     outline->n_points++;
--- a/src/cff/cffgload.h
+++ b/src/cff/cffgload.h
@@ -4,7 +4,7 @@
 /*                                                                         */
 /*    OpenType Glyph Loader (specification).                               */
 /*                                                                         */
-/*  Copyright 1996-2001, 2002, 2003, 2004, 2006, 2007, 2008 by             */
+/*  Copyright 1996-2001, 2002, 2003, 2004, 2006, 2007, 2008, 2009 by       */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
 /*                                                                         */
 /*  This file is part of the FreeType project, and may only be used,       */
@@ -53,8 +53,6 @@
   /*                                                                       */
   /*    current       :: The current glyph outline.                        */
   /*                                                                       */
-  /*    last          :: The last point position.                          */
-  /*                                                                       */
   /*    pos_x         :: The horizontal translation (if composite glyph).  */
   /*                                                                       */
   /*    pos_y         :: The vertical translation (if composite glyph).    */
@@ -87,8 +85,6 @@
     FT_GlyphLoader  loader;
     FT_Outline*     base;
     FT_Outline*     current;
-
-    FT_Vector       last;
 
     FT_Pos          pos_x;
     FT_Pos          pos_y;
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -1559,8 +1559,6 @@
       point->x = x;
       point->y = y;
       *control = (FT_Byte)( flag ? FT_CURVE_TAG_ON : FT_CURVE_TAG_CUBIC );
-
-      builder->last = *point;
     }
     outline->n_points++;
   }
--- a/src/psaux/t1decode.c
+++ b/src/psaux/t1decode.c
@@ -1070,8 +1070,8 @@
           builder->advance.x       = top[1];
           builder->advance.y       = 0;
 
-          orig_x = builder->last.x = x = builder->pos_x + top[0];
-          orig_y = builder->last.y = y = builder->pos_y;
+          orig_x = x = builder->pos_x + top[0];
+          orig_y = y = builder->pos_y;
 
           FT_UNUSED( orig_y );
 
@@ -1098,8 +1098,8 @@
           builder->advance.x       = top[2];
           builder->advance.y       = top[3];
 
-          builder->last.x = x = builder->pos_x + top[0];
-          builder->last.y = y = builder->pos_y + top[1];
+          x = builder->pos_x + top[0];
+          y = builder->pos_y + top[1];
 
           /* the `metrics_only' indicates that we only want to compute */
           /* the glyph's metrics (lsb + advance width), not load the   */