summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-08-08 16:57:27 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-08-08 16:57:27 -0400
commit0956094754c054a9cafc7ead4bac24ca2c77439a (patch)
tree687bc26a919b4353b2105ad0590cc47724150826
parent3616d0b02412d86aa8d2370e67002c2ef5b31da3 (diff)
downloadpango-0956094754c054a9cafc7ead4bac24ca2c77439a.tar.gz
[HB] Remove hb_ot_layout_table_find_feature()
That function doesn't make much sense as multiple features in the table may have the same tag.
-rw-r--r--pango/opentype/hb-ot-layout.cc16
-rw-r--r--pango/opentype/hb-ot-layout.h6
2 files changed, 0 insertions, 22 deletions
diff --git a/pango/opentype/hb-ot-layout.cc b/pango/opentype/hb-ot-layout.cc
index 125cff74..fd7deb63 100644
--- a/pango/opentype/hb-ot-layout.cc
+++ b/pango/opentype/hb-ot-layout.cc
@@ -382,22 +382,6 @@ hb_ot_layout_table_get_feature_tags (hb_face_t *face,
return g.get_feature_tags (feature_count, feature_tags);
}
-hb_bool_t
-hb_ot_layout_table_find_feature (hb_face_t *face,
- hb_tag_t table_tag,
- hb_tag_t feature_tag,
- unsigned int *feature_index)
-{
- ASSERT_STATIC (NO_INDEX == HB_OT_LAYOUT_NO_FEATURE_INDEX);
- const GSUBGPOS &g = get_gsubgpos_table (face, table_tag);
-
- if (g.find_feature_index (feature_tag, feature_index))
- return TRUE;
-
- if (feature_index) *feature_index = HB_OT_LAYOUT_NO_FEATURE_INDEX;
- return FALSE;
-}
-
hb_bool_t
hb_ot_layout_script_get_language_tags (hb_face_t *face,
diff --git a/pango/opentype/hb-ot-layout.h b/pango/opentype/hb-ot-layout.h
index d9eb0578..7b1ed6a7 100644
--- a/pango/opentype/hb-ot-layout.h
+++ b/pango/opentype/hb-ot-layout.h
@@ -117,12 +117,6 @@ hb_ot_layout_table_get_feature_tags (hb_face_t *face,
hb_tag_t *feature_tags /* OUT */);
hb_bool_t
-hb_ot_layout_table_find_feature (hb_face_t *face,
- hb_tag_t table_tag,
- hb_tag_t feature_tag,
- unsigned int *feature_index);
-
-hb_bool_t
hb_ot_layout_script_get_language_tags (hb_face_t *face,
hb_tag_t table_tag,
unsigned int script_index,