diff options
Diffstat (limited to 'pango/pangocairo-context.c')
-rw-r--r-- | pango/pangocairo-context.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/pango/pangocairo-context.c b/pango/pangocairo-context.c index 0ea8332a..b1d6a03e 100644 --- a/pango/pangocairo-context.c +++ b/pango/pangocairo-context.c @@ -463,7 +463,7 @@ pango_cairo_create_context (cairo_t *cr) * and target surface of the Cairo context. * * This layout can then be used for text measurement with functions - * like [method@Pango.Layout.get_size] or drawing with functions like + * like [method@Pango.Lines.get_size] or drawing with functions like * [func@show_layout]. If you change the transformation or target * surface for @cr, you need to call [func@update_layout]. * @@ -491,21 +491,6 @@ pango_cairo_create_layout (cairo_t *cr) return layout; } -PangoSimpleLayout * -pango_cairo_create_simple_layout (cairo_t *cr) -{ - PangoContext *context; - PangoSimpleLayout *layout; - - g_return_val_if_fail (cr != NULL, NULL); - - context = pango_cairo_create_context (cr); - layout = pango_simple_layout_new (context); - g_object_unref (context); - - return layout; -} - /** * pango_cairo_update_layout: * @cr: a Cairo context @@ -526,14 +511,3 @@ pango_cairo_update_layout (cairo_t *cr, _pango_cairo_update_context (cr, pango_layout_get_context (layout)); } - -void -pango_cairo_update_simple_layout (cairo_t *cr, - PangoSimpleLayout *layout) -{ - g_return_if_fail (cr != NULL); - g_return_if_fail (PANGO_IS_SIMPLE_LAYOUT (layout)); - - _pango_cairo_update_context (cr, pango_simple_layout_get_context (layout)); -} - |