提交 73449cd2 编写于 作者: B Behdad Esfahbod

[layout] Fold one function inline

Preparation for fixing https://github.com/harfbuzz/harfbuzz/pull/1317
上级 ba5ca6a7
...@@ -555,19 +555,6 @@ hb_ot_layout_language_get_required_feature (hb_face_t *face, ...@@ -555,19 +555,6 @@ hb_ot_layout_language_get_required_feature (hb_face_t *face,
return l.has_required_feature (); return l.has_required_feature ();
} }
static void
_hb_ot_layout_language_add_feature_indexes_to (hb_face_t *face,
hb_tag_t table_tag,
unsigned int script_index,
unsigned int language_index,
hb_set_t *feature_indexes /* OUT */)
{
const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag);
const OT::LangSys &l = g.get_script (script_index).get_lang_sys (language_index);
l.add_feature_indexes_to (feature_indexes);
}
unsigned int unsigned int
hb_ot_layout_language_get_feature_indexes (hb_face_t *face, hb_ot_layout_language_get_feature_indexes (hb_face_t *face,
hb_tag_t table_tag, hb_tag_t table_tag,
...@@ -724,12 +711,9 @@ _hb_ot_layout_collect_features_features (hb_face_t *face, ...@@ -724,12 +711,9 @@ _hb_ot_layout_collect_features_features (hb_face_t *face,
nullptr)) nullptr))
feature_indexes->add (required_feature_index); feature_indexes->add (required_feature_index);
/* All features */ const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag);
_hb_ot_layout_language_add_feature_indexes_to (face, const OT::LangSys &l = g.get_script (script_index).get_lang_sys (language_index);
table_tag, l.add_feature_indexes_to (feature_indexes);
script_index,
language_index,
feature_indexes);
} }
else else
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册