diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-08-04 13:57:41 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-08-04 14:05:37 -0400 |
commit | b2eb172416f9ad32a60bb33a26df6bf40ae69453 (patch) | |
tree | 47dd8e8618c838aaa3fc2c2a3427f26c2d13452c /pango/opentype/hb-font.cc | |
parent | 36c73171738ce9e51c370ad54753a8f882172e75 (diff) | |
download | pango-b2eb172416f9ad32a60bb33a26df6bf40ae69453.tar.gz |
[HB] Fix mix warnings
Diffstat (limited to 'pango/opentype/hb-font.cc')
-rw-r--r-- | pango/opentype/hb-font.cc | 15 |
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); |