Remove dead code.
This commit is contained in:
parent
47d2c33e3d
commit
10d6a25a26
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue