[truetype] Remove unusued code and variables.

This commit is contained in:
Infinality 2012-12-17 19:17:30 -06:00
parent a9f6f85e77
commit 94b79e7453
2 changed files with 24 additions and 32 deletions

View File

@ -1,3 +1,10 @@
2012-12-17 Infinality <infinality@infinality.net>
[truetype] Remove unusued code and variables.
* src/truetype/ttinterp.c: Updated.
(Ins_FDEF): Remove opcode patterns that are not being used.
2012-12-16 Werner Lemberg <wl@gnu.org> 2012-12-16 Werner Lemberg <wl@gnu.org>
Various compiler warning fixes. Various compiler warning fixes.

View File

@ -4610,25 +4610,25 @@
FT_ULong n; FT_ULong n;
TT_DefRecord* rec; TT_DefRecord* rec;
TT_DefRecord* limit; TT_DefRecord* limit;
#ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING #ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING
FT_Byte opcode_pattern[7][12] = { /* arguments to opcodes are skipped by `SKIP_Code' */
/* inline delta function 1 */ FT_Byte opcode_pattern[1][12] = {
{0x4B,0x53,0x23,0x4B,0x51,0x5A,0x58,0x38,0x1B,0x21,0x21,0x59}, /* #0 TTFautohint bytecode (old) */
/* inline delta function 2 */ {
{0x4B,0x54,0x58,0x38,0x1B,0x5A,0x21,0x21,0x59,}, 0x20, /* DUP */
/* diagonal stroke function */ 0x64, /* ABS */
{0x20,0x20,0x40,0x60,0x47,0x40,0x23,0x42,}, 0xB0, /* PUSHB_1 */
/* VacuFormRound function */ /* 32 */
{0x45,0x23,0x46,0x60,0x20,}, 0x60, /* ADD */
/* ttfautohinted */ 0x66, /* FLOOR */
{0x20,0x64,0xb0,0x60,0x66,0x23,0xb0,}, 0x23, /* SWAP */
/* spacing functions */ 0xB0 /* PUSHB_1 */
{0x01,0x41,0x43,0x58,}, },
{0x01,0x18,0x41,0x43,0x58,},
}; };
FT_UShort opcode_patterns = 7; FT_UShort opcode_patterns = 1;
FT_UShort opcode_pointer[7] = {0,0,0,0,0,0,0}; FT_UShort opcode_pointer[1] = { 0, };
FT_UShort opcode_size[7] = {12,9,8,5,7,4,5}; FT_UShort opcode_size[1] = { 7, };
FT_UShort i; FT_UShort i;
#endif /* TT_CONFIG_OPTION_SUBPIXEL_HINTING */ #endif /* TT_CONFIG_OPTION_SUBPIXEL_HINTING */
@ -4706,23 +4706,8 @@
switch ( i ) switch ( i )
{ {
case 0: case 0:
case 1:
rec->inline_delta = TRUE;
break;
case 2:
case 3:
rec->active = FALSE;
break;
case 4:
CUR.size->ttfautohinted = TRUE; CUR.size->ttfautohinted = TRUE;
break; break;
case 5:
case 6:
rec->active = FALSE;
break;
} }
opcode_pointer[i] = 0; opcode_pointer[i] = 0;
} }