shithub: freetype+ttf2subf

Download patch

ref: 08e7909a5818de4c71c9a54b7ae66b3ad01c65d8
parent: 4aaadf4610b37f73a868697274506e31a71104e4
author: Werner Lemberg <[email protected]>
date: Sun Jan 11 03:45:50 EST 2015

* src/truetype/ttinterp.c (Normalize): Remove unused argument.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2015-01-11  Werner Lemberg  <[email protected]>
 
+	* src/truetype/ttinterp.c (Normalize): Remove unused argument.
+
+2015-01-11  Werner Lemberg  <[email protected]>
+
 	[truetype] More macro expansions.
 
 	* src/truetype/ttinterp.c (FT_UNUSED_EXEC): Remove macro by
--- a/src/truetype/ttinterp.c
+++ b/src/truetype/ttinterp.c
@@ -2585,20 +2585,17 @@
   /*    Returns FAILURE if a vector parameter is zero.                     */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    In case Vx and Vy are both zero, Normalize() returns SUCCESS, and  */
+  /*    In case Vx and Vy are both zero, `Normalize' returns SUCCESS, and  */
   /*    R is undefined.                                                    */
   /*                                                                       */
   static FT_Bool
-  Normalize( TT_ExecContext  exc,
-             FT_F26Dot6      Vx,
+  Normalize( FT_F26Dot6      Vx,
              FT_F26Dot6      Vy,
              FT_UnitVector*  R )
   {
     FT_F26Dot6  W;
 
-    FT_UNUSED( exc );
 
-
     if ( FT_ABS( Vx ) < 0x4000L && FT_ABS( Vy ) < 0x4000L )
     {
       if ( Vx == 0 && Vy == 0 )
@@ -2672,7 +2669,7 @@
       A = -C;
     }
 
-    Normalize( exc, A, B, Vec );
+    Normalize( A, B, Vec );
 
     return SUCCESS;
   }
@@ -2813,7 +2810,7 @@
     S = (FT_Short)args[0];
     X = (FT_Long)S;
 
-    Normalize( exc, X, Y, &exc->GS.projVector );
+    Normalize( X, Y, &exc->GS.projVector );
 
     exc->GS.dualVector = exc->GS.projVector;
     GUESS_VECTOR( freeVector );
@@ -2841,7 +2838,7 @@
     S = (FT_Short)args[0];
     X = S;
 
-    Normalize( exc, X, Y, &exc->GS.freeVector );
+    Normalize( X, Y, &exc->GS.freeVector );
     GUESS_VECTOR( projVector );
     Compute_Funcs( exc );
   }
@@ -5032,7 +5029,7 @@
       A = -C;
     }
 
-    Normalize( exc, A, B, &exc->GS.dualVector );
+    Normalize( A, B, &exc->GS.dualVector );
 
     {
       FT_Vector*  v1 = exc->zp1.cur + p2;
@@ -5056,7 +5053,7 @@
       A = -C;
     }
 
-    Normalize( exc, A, B, &exc->GS.projVector );
+    Normalize( A, B, &exc->GS.projVector );
     GUESS_VECTOR( freeVector );
     Compute_Funcs( exc );
   }