summaryrefslogtreecommitdiff
path: root/pango/opentype/hb-font.cc
diff options
context:
space:
mode:
Diffstat (limited to 'pango/opentype/hb-font.cc')
-rw-r--r--pango/opentype/hb-font.cc15
1 files changed, 3 insertions, 12 deletions
diff --git a/pango/opentype/hb-font.cc b/pango/opentype/hb-font.cc
index 869df34f..9aaefdeb 100644
--- a/pango/opentype/hb-font.cc
+++ b/pango/opentype/hb-font.cc
@@ -161,8 +161,8 @@ hb_unicode_callbacks_copy (hb_unicode_callbacks_t *other_ucallbacks)
* hb_face_t
*/
-hb_blob_t *
-_hb_face_get_table (hb_tag_t tag, void *user_data)
+static hb_blob_t *
+_hb_face_get_table_from_blob (hb_tag_t tag, void *user_data)
{
hb_face_t *face = (hb_face_t *) user_data;
const char *data = hb_blob_lock (face->blob);
@@ -181,15 +181,6 @@ _hb_face_get_table (hb_tag_t tag, void *user_data)
return blob;
}
-void
-_hb_face_destroy_blob (void *user_data)
-{
- hb_face_t *face = (hb_face_t *) user_data;
-
- hb_blob_destroy (face->blob);
- face->blob = NULL;
-}
-
static hb_face_t _hb_face_nil = {
HB_REFERENCE_COUNT_INVALID, /* ref_count */
@@ -237,7 +228,7 @@ hb_face_create_for_data (hb_blob_t *blob,
face->blob = hb_blob_reference (blob);
face->index = index;
- face->get_table = _hb_face_get_table;
+ face->get_table = _hb_face_get_table_from_blob;
face->user_data = face;
_hb_ot_layout_init (face);