[pshinter] Additional clean-ups.

* src/pshinter/pshalgo.h (psh_hint_table_find_strong_points): Streamline code.
* src/pshinter/pshalgo.h (PSH_Glyph): Remove unused fields.
This commit is contained in:
Alexei Podtelezhnikov 2021-10-04 23:10:59 -04:00
parent 227445f613
commit ec6a458821
2 changed files with 3 additions and 11 deletions

View File

@ -1418,18 +1418,14 @@
for ( ; count > 0; count--, point++ )
{
PSH_Dir point_dir = PSH_DIR_NONE;
FT_Pos org_u = point->org_u;
PSH_Dir point_dir;
FT_Pos org_u = point->org_u;
if ( psh_point_is_strong( point ) )
continue;
if ( point->dir_in & major_dir )
point_dir = point->dir_in;
else if ( point->dir_out & major_dir )
point_dir = point->dir_out;
point_dir = ( point->dir_in | point->dir_out ) & major_dir;
if ( point_dir & ( PSH_DIR_DOWN | PSH_DIR_RIGHT ) )
{

View File

@ -195,10 +195,6 @@ FT_BEGIN_HEADER
PSH_Globals globals;
PSH_Hint_TableRec hint_tables[2];
FT_Bool vertical;
FT_Int major_dir;
FT_Int minor_dir;
FT_Bool do_horz_hints;
FT_Bool do_vert_hints;
FT_Bool do_horz_snapping;