summaryrefslogtreecommitdiff
path: root/pango/pangofc-shape.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2015-06-26 11:41:34 -0700
committerBehdad Esfahbod <behdad@behdad.org>2015-06-26 11:42:09 -0700
commitd3fd4b7b5ea6c8fa56aa36235db76a6eef7ec0a6 (patch)
tree8beb7440b20fc14f5205cd91284079bc5dfe2e78 /pango/pangofc-shape.c
parent248e9f40cb756bda098ed778ea30b52468a7b3e0 (diff)
downloadpango-d3fd4b7b5ea6c8fa56aa36235db76a6eef7ec0a6.tar.gz
Don't use hb_glib_get_unicode_funcs()
HarfBuzz buffer comes with a properly set up Unicode funcs these days. So, trust it.
Diffstat (limited to 'pango/pangofc-shape.c')
-rw-r--r--pango/pangofc-shape.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/pango/pangofc-shape.c b/pango/pangofc-shape.c
index f94f5ebb..51404f06 100644
--- a/pango/pangofc-shape.c
+++ b/pango/pangofc-shape.c
@@ -35,17 +35,6 @@ static hb_buffer_t *cached_buffer = NULL; /* MT-safe */
G_LOCK_DEFINE_STATIC (cached_buffer);
static hb_buffer_t *
-create_buffer (void)
-{
- hb_buffer_t *buffer;
-
- buffer = hb_buffer_create ();
- hb_buffer_set_unicode_funcs (buffer, hb_glib_get_unicode_funcs ());
-
- return buffer;
-}
-
-static hb_buffer_t *
acquire_buffer (gboolean *free_buffer)
{
hb_buffer_t *buffer;
@@ -53,14 +42,14 @@ acquire_buffer (gboolean *free_buffer)
if (G_LIKELY (G_TRYLOCK (cached_buffer)))
{
if (G_UNLIKELY (!cached_buffer))
- cached_buffer = create_buffer ();
+ cached_buffer = hb_buffer_create ();
buffer = cached_buffer;
*free_buffer = FALSE;
}
else
{
- buffer = create_buffer ();
+ buffer = hb_buffer_create ();
*free_buffer = TRUE;
}