[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.
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
diff --git a/src/pshinter/pshalgo.c b/src/pshinter/pshalgo.c
index 22f3695..8632df6 100644
--- a/src/pshinter/pshalgo.c
+++ b/src/pshinter/pshalgo.c
@@ -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 ) )
{
diff --git a/src/pshinter/pshalgo.h b/src/pshinter/pshalgo.h
index 609514b..999c601 100644
--- a/src/pshinter/pshalgo.h
+++ b/src/pshinter/pshalgo.h
@@ -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;