diff options
author | Behdad Esfahbod <behdad@fb.com> | 2019-03-11 18:09:51 -0700 |
---|---|---|
committer | Behdad Esfahbod <behdad@fb.com> | 2019-03-11 18:09:51 -0700 |
commit | e52ec3fc23c2d5a881849f047885e0423bd74740 (patch) | |
tree | d8fb54aba285c9cc7f2e4fff58b1f57b68dc4463 | |
parent | c2442c90d6ecfaee987ed8ac6f93a9ac6b07c642 (diff) |
Remove redundant hb_ot_layout_lookup_would_substitute_fast
-rw-r--r-- | src/hb-ot-layout.cc | 13 | ||||
-rw-r--r-- | src/hb-ot-layout.hh | 7 | ||||
-rw-r--r-- | src/hb-ot-shape-complex-indic.cc | 2 | ||||
-rw-r--r-- | src/hb-ot-shape-complex-khmer.cc | 2 |
4 files changed, 2 insertions, 22 deletions
diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index d32be04a..1365a3e2 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -958,19 +958,6 @@ hb_ot_layout_lookup_would_substitute (hb_face_t *face, unsigned int glyphs_length, 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; OT::hb_would_apply_context_t c (face, glyphs, glyphs_length, (bool) zero_context); diff --git a/src/hb-ot-layout.hh b/src/hb-ot-layout.hh index 5125e9fa..be7ef026 100644 --- a/src/hb-ot-layout.hh +++ b/src/hb-ot-layout.hh @@ -96,13 +96,6 @@ HB_MARK_AS_FLAG_T (hb_ot_layout_glyph_props_flags_t); * 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. */ HB_INTERNAL void diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index 1c7bba5e..d421555f 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -239,7 +239,7 @@ struct would_substitute_feature_t hb_face_t *face) const { 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 false; } diff --git a/src/hb-ot-shape-complex-khmer.cc b/src/hb-ot-shape-complex-khmer.cc index 0bc2309b..5746651d 100644 --- a/src/hb-ot-shape-complex-khmer.cc +++ b/src/hb-ot-shape-complex-khmer.cc @@ -164,7 +164,7 @@ struct would_substitute_feature_t hb_face_t *face) const { 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 false; } |