From 08e7909a5818de4c71c9a54b7ae66b3ad01c65d8 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sun, 11 Jan 2015 08:45:50 +0100 Subject: [PATCH] * src/truetype/ttinterp.c (Normalize): Remove unused argument. --- ChangeLog | 4 ++++ src/truetype/ttinterp.c | 17 +++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8ab57c4c7..755db2c90 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2015-01-11 Werner Lemberg + + * src/truetype/ttinterp.c (Normalize): Remove unused argument. + 2015-01-11 Werner Lemberg [truetype] More macro expansions. diff --git a/src/truetype/ttinterp.c b/src/truetype/ttinterp.c index 82e79d052..f35c5c6e9 100644 --- a/src/truetype/ttinterp.c +++ b/src/truetype/ttinterp.c @@ -2585,19 +2585,16 @@ /* Returns FAILURE if a vector parameter is zero. */ /* */ /* */ - /* 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 ) { @@ -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 ); }