summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-09 12:05:44 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-07-09 12:07:25 -0400
commit8e4cee2589572c7909d07bbcc6ea500b1c4b688e (patch)
tree05516997ede2c019e03d2431ce652391cbcfc1e9 /pango/pango-context.c
parent85aa95105755468d6a8f833bcfdf9b56de02843a (diff)
downloadpango-8e4cee2589572c7909d07bbcc6ea500b1c4b688e.tar.gz
Remove language engine remnants
Drop all internal use of language engines. The lang_engine field in PangoAnalysis is now unused.
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r--pango/pango-context.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 83fdc9a6..b8e78c22 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -758,7 +758,6 @@ struct _ItemizeState
PangoEmojiIter emoji_iter;
PangoLanguage *derived_lang;
- PangoEngineLang *lang_engine;
PangoFontset *current_fonts;
FontCache *cache;
@@ -1061,7 +1060,6 @@ itemize_state_init (ItemizeState *state,
state->gravity_hint = state->context->gravity_hint;
state->resolved_gravity = PANGO_GRAVITY_AUTO;
state->derived_lang = NULL;
- state->lang_engine = NULL;
state->current_fonts = NULL;
state->cache = NULL;
state->base_font = NULL;
@@ -1165,7 +1163,6 @@ itemize_state_add_character (ItemizeState *state,
}
if (!force_break &&
- state->item->analysis.lang_engine == state->lang_engine &&
state->item->analysis.shape_engine == shape_engine &&
state->item->analysis.font == font)
{
@@ -1181,7 +1178,6 @@ itemize_state_add_character (ItemizeState *state,
state->item->length = 0;
state->item->num_chars = 1;
state->item->analysis.shape_engine = shape_engine;
- state->item->analysis.lang_engine = state->lang_engine;
if (font)
g_object_ref (font);
@@ -1404,11 +1400,6 @@ itemize_state_update_for_new_run (ItemizeState *state)
state->changed |= DERIVED_LANG_CHANGED;
}
- if ((state->changed & DERIVED_LANG_CHANGED) || !state->lang_engine)
- {
- state->lang_engine = _pango_get_language_engine ();
- }
-
if (state->changed & (EMOJI_CHANGED))
{
state->changed |= FONT_CHANGED;