Remove redundant hb_ot_layout_lookup_would_substitute_fast
This commit is contained in:
parent
c2442c90d6
commit
e52ec3fc23
|
@ -957,19 +957,6 @@ hb_ot_layout_lookup_would_substitute (hb_face_t *face,
|
||||||
const hb_codepoint_t *glyphs,
|
const hb_codepoint_t *glyphs,
|
||||||
unsigned int glyphs_length,
|
unsigned int glyphs_length,
|
||||||
hb_bool_t zero_context)
|
hb_bool_t zero_context)
|
||||||
{
|
|
||||||
return hb_ot_layout_lookup_would_substitute_fast (face,
|
|
||||||
lookup_index,
|
|
||||||
glyphs, glyphs_length,
|
|
||||||
zero_context);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
|
||||||
hb_ot_layout_lookup_would_substitute_fast (hb_face_t *face,
|
|
||||||
unsigned int lookup_index,
|
|
||||||
const hb_codepoint_t *glyphs,
|
|
||||||
unsigned int glyphs_length,
|
|
||||||
bool zero_context)
|
|
||||||
{
|
{
|
||||||
if (unlikely (lookup_index >= face->table.GSUB->lookup_count)) return false;
|
if (unlikely (lookup_index >= face->table.GSUB->lookup_count)) return false;
|
||||||
OT::hb_would_apply_context_t c (face, glyphs, glyphs_length, (bool) zero_context);
|
OT::hb_would_apply_context_t c (face, glyphs, glyphs_length, (bool) zero_context);
|
||||||
|
|
|
@ -96,13 +96,6 @@ HB_MARK_AS_FLAG_T (hb_ot_layout_glyph_props_flags_t);
|
||||||
* GSUB/GPOS
|
* GSUB/GPOS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
HB_INTERNAL bool
|
|
||||||
hb_ot_layout_lookup_would_substitute_fast (hb_face_t *face,
|
|
||||||
unsigned int lookup_index,
|
|
||||||
const hb_codepoint_t *glyphs,
|
|
||||||
unsigned int glyphs_length,
|
|
||||||
bool zero_context);
|
|
||||||
|
|
||||||
|
|
||||||
/* Should be called before all the substitute_lookup's are done. */
|
/* Should be called before all the substitute_lookup's are done. */
|
||||||
HB_INTERNAL void
|
HB_INTERNAL void
|
||||||
|
|
|
@ -239,7 +239,7 @@ struct would_substitute_feature_t
|
||||||
hb_face_t *face) const
|
hb_face_t *face) const
|
||||||
{
|
{
|
||||||
for (unsigned int i = 0; i < count; i++)
|
for (unsigned int i = 0; i < count; i++)
|
||||||
if (hb_ot_layout_lookup_would_substitute_fast (face, lookups[i].index, glyphs, glyphs_count, zero_context))
|
if (hb_ot_layout_lookup_would_substitute (face, lookups[i].index, glyphs, glyphs_count, zero_context))
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -164,7 +164,7 @@ struct would_substitute_feature_t
|
||||||
hb_face_t *face) const
|
hb_face_t *face) const
|
||||||
{
|
{
|
||||||
for (unsigned int i = 0; i < count; i++)
|
for (unsigned int i = 0; i < count; i++)
|
||||||
if (hb_ot_layout_lookup_would_substitute_fast (face, lookups[i].index, glyphs, glyphs_count, zero_context))
|
if (hb_ot_layout_lookup_would_substitute (face, lookups[i].index, glyphs, glyphs_count, zero_context))
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue