* src/autofit/afloader.c: removing superfluous code in the auto-fitter's loader
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
diff --git a/ChangeLog b/ChangeLog
index b4e575d..1b511e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-13 David Turner <david@freetype.org>
+
+ * src/autofit/afloader.c: removing superfluous code in the auto-fitter's
+ loader
+
2006-04-05 Detlef Würkner <TetiSoft@apg.lahn.de>
* builds/amiga/makefile, builds/amiga/makefile.os4,
diff --git a/src/autofit/afloader.c b/src/autofit/afloader.c
index 7f110ab..01b4f57 100644
--- a/src/autofit/afloader.c
+++ b/src/autofit/afloader.c
@@ -27,24 +27,11 @@
af_loader_init( AF_Loader loader,
FT_Memory memory )
{
- FT_Error error;
-
-
FT_ZERO( loader );
af_glyph_hints_init( &loader->hints, memory );
- error = FT_GlyphLoader_New( memory, &loader->gloader );
- if ( !error )
- {
- error = FT_GlyphLoader_CreateExtra( loader->gloader );
- if ( error )
- {
- FT_GlyphLoader_Done( loader->gloader );
- loader->gloader = NULL;
- }
- }
- return error;
+ return FT_GlyphLoader_New( memory, &loader->gloader );
}
@@ -148,10 +135,6 @@
slot->outline.points,
slot->outline.n_points );
- FT_ARRAY_COPY( gloader->current.extra_points,
- slot->outline.points,
- slot->outline.n_points );
-
FT_ARRAY_COPY( gloader->current.outline.contours,
slot->outline.contours,
slot->outline.n_contours );
@@ -308,16 +291,11 @@
{
FT_Vector* cur = gloader->base.outline.points +
num_base_points;
- FT_Vector* org = gloader->base.extra_points +
- num_base_points;
FT_Vector* limit = cur + num_new_points;
- for ( ; cur < limit; cur++, org++ )
- {
+ for ( ; cur < limit; cur++ )
FT_Vector_Transform( cur, &subglyph->transform );
- FT_Vector_Transform( org, &subglyph->transform );
- }
}
/* apply offset */