summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@src.gnome.org>2007-11-07 10:04:11 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-11-07 10:04:11 +0000
commit7a6d7022f2ba0a90dd127f3a0bbf95377c0c7562 (patch)
tree33441751ba641e7f86a6e9f6f7b942812c0b88fb
parent4f3ae7a52de570891eb3aa9587ce0b7eea0e4f61 (diff)
downloadpango-7a6d7022f2ba0a90dd127f3a0bbf95377c0c7562.tar.gz
Remove dead code.
svn path=/trunk/; revision=2495
-rw-r--r--pango/opentype/harfbuzz-gdef.c88
-rw-r--r--pango/opentype/harfbuzz-gpos.h4
2 files changed, 1 insertions, 91 deletions
diff --git a/pango/opentype/harfbuzz-gdef.c b/pango/opentype/harfbuzz-gdef.c
index 0dafc915..a5dfdb64 100644
--- a/pango/opentype/harfbuzz-gdef.c
+++ b/pango/opentype/harfbuzz-gdef.c
@@ -26,94 +26,6 @@ static void Free_NewGlyphClasses( HB_GDEFHeader* gdef );
-/**********************
- * Extension Functions
- **********************/
-
-#if 0
-#define GDEF_ID Build_Extension_ID( 'G', 'D', 'E', 'F' )
-
-
-static HB_Error GDEF_Create( void* ext,
- PFace font )
-{
- DEFINE_LOAD_LOCALS( font->stream );
-
- HB_GDEFHeader* gdef = (HB_GDEFHeader*)ext;
- Long table;
-
-
- /* by convention */
-
- if ( !gdef )
- return HB_Err_Ok;
-
- /* a null offset indicates that there is no GDEF table */
-
- gdef->offset = 0;
-
- /* we store the start offset and the size of the subtable */
-
- table = HB_LookUp_Table( font, TTAG_GDEF );
- if ( table < 0 )
- return HB_Err_Ok; /* The table is optional */
-
- if ( FILE_Seek( font->dirTables[table].Offset ) ||
- ACCESS_Frame( 4L ) )
- return error;
-
- gdef->offset = FILE_Pos() - 4L; /* undo ACCESS_Frame() */
- gdef->Version = GET_ULong();
-
- FORGET_Frame();
-
- gdef->loaded = FALSE;
-
- return HB_Err_Ok;
-}
-
-
-static HB_Error GDEF_Destroy( void* ext,
- PFace font )
-{
- HB_GDEFHeader* gdef = (HB_GDEFHeader*)ext;
-
-
- /* by convention */
-
- if ( !gdef )
- return HB_Err_Ok;
-
- if ( gdef->loaded )
- {
- Free_LigCaretList( &gdef->LigCaretList );
- Free_AttachList( &gdef->AttachList );
- _HB_OPEN_Free_ClassDefinition( &gdef->GlyphClassDef );
- _HB_OPEN_Free_ClassDefinition( &gdef->MarkAttachClassDef );
-
- Free_NewGlyphClasses( gdef );
- }
-
- return HB_Err_Ok;
-}
-
-
-
-HB_Error HB_Init_GDEF_Extension( HB_Engine engine )
-{
- PEngine_Instance _engine = HANDLE_Engine( engine );
-
-
- if ( !_engine )
- return ERR(HB_Err_Invalid_Engine);
-
- return HB_Register_Extension( _engine,
- GDEF_ID,
- sizeof ( HB_GDEFHeader ),
- GDEF_Create,
- GDEF_Destroy );
-}
-#endif
/* GDEF glyph classes */
#define UNCLASSIFIED_GLYPH 0
diff --git a/pango/opentype/harfbuzz-gpos.h b/pango/opentype/harfbuzz-gpos.h
index 94ca71fa..4a34fe4d 100644
--- a/pango/opentype/harfbuzz-gpos.h
+++ b/pango/opentype/harfbuzz-gpos.h
@@ -41,9 +41,7 @@ HB_BEGIN_HEADER
If for some reason no outline data is available (e.g. for an
embedded bitmap glyph), _glyph->outline.n_points should be set to
- zero. _glyph can be computed with
-
- _glyph = HANDLE_Glyph( glyph ) */
+ zero. */
typedef HB_Error (*HB_GlyphFunction)(HB_Font font,
HB_UInt glyphIndex,