From 73449cd213c3a12468e99b9c3d840fc60a334902 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 25 Oct 2018 20:32:05 -0700 Subject: [PATCH] [layout] Fold one function inline Preparation for fixing https://github.com/harfbuzz/harfbuzz/pull/1317 --- src/hb-ot-layout.cc | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 128253da9..7e08c2a09 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -555,19 +555,6 @@ hb_ot_layout_language_get_required_feature (hb_face_t *face, 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 hb_ot_layout_language_get_feature_indexes (hb_face_t *face, hb_tag_t table_tag, @@ -724,12 +711,9 @@ _hb_ot_layout_collect_features_features (hb_face_t *face, nullptr)) feature_indexes->add (required_feature_index); - /* All features */ - _hb_ot_layout_language_add_feature_indexes_to (face, - table_tag, - script_index, - language_index, - feature_indexes); + 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); } else {