clutter: Remove unused get_font_map
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3962>
This commit is contained in:
parent
39da6e10fa
commit
4f606261d3
3 changed files with 7 additions and 25 deletions
|
@ -13126,15 +13126,16 @@ PangoContext *
|
|||
clutter_actor_create_pango_context (ClutterActor *self)
|
||||
{
|
||||
CoglPangoFontMap *font_map;
|
||||
PangoContext *context;
|
||||
ClutterContext *context = clutter_actor_get_context (self);
|
||||
PangoContext *pango_context;
|
||||
|
||||
font_map = COGL_PANGO_FONT_MAP (clutter_get_font_map ());
|
||||
font_map = clutter_context_get_pango_fontmap (context);
|
||||
|
||||
context = cogl_pango_font_map_create_context (font_map);
|
||||
update_pango_context (clutter_get_default_backend (), context);
|
||||
pango_context_set_language (context, pango_language_get_default ());
|
||||
pango_context = cogl_pango_font_map_create_context (font_map);
|
||||
update_pango_context (clutter_get_default_backend (), pango_context);
|
||||
pango_context_set_language (pango_context, pango_language_get_default ());
|
||||
|
||||
return context;
|
||||
return pango_context;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -576,22 +576,6 @@ clutter_stage_process_event (ClutterStage *stage,
|
|||
context->current_event = g_slist_delete_link (context->current_event, context->current_event);
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_get_font_map:
|
||||
*
|
||||
* Retrieves the #PangoFontMap instance used by Clutter.
|
||||
* You can use the global font map object with the COGL
|
||||
* Pango API.
|
||||
*
|
||||
* Return value: (transfer none): the #PangoFontMap instance. The returned
|
||||
* value is owned by Clutter and it should never be unreferenced.
|
||||
*/
|
||||
PangoFontMap *
|
||||
clutter_get_font_map (void)
|
||||
{
|
||||
return PANGO_FONT_MAP (clutter_context_get_pango_fontmap (ClutterCntx));
|
||||
}
|
||||
|
||||
typedef struct _ClutterRepaintFunction
|
||||
{
|
||||
guint id;
|
||||
|
|
|
@ -138,9 +138,6 @@ guint clutter_threads_add_repaint_func_full (ClutterRepaintF
|
|||
CLUTTER_EXPORT
|
||||
void clutter_threads_remove_repaint_func (guint handle_id);
|
||||
|
||||
CLUTTER_EXPORT
|
||||
PangoFontMap * clutter_get_font_map (void);
|
||||
|
||||
CLUTTER_EXPORT
|
||||
ClutterTextDirection clutter_get_default_text_direction (void);
|
||||
|
||||
|
|
Loading…
Reference in a new issue