[pango/wip/kill-shape-engine: 5/9] context: Remove dead code



commit 3839f81c13ffd26b899416ab8af6b95317a84226
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jul 9 15:01:32 2019 -0400

    context: Remove dead code

 pango/pango-context.c | 30 ------------------------------
 1 file changed, 30 deletions(-)
---
diff --git a/pango/pango-context.c b/pango/pango-context.c
index 3a4891d5..19847bfb 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -1272,21 +1272,6 @@ get_base_font (ItemizeState *state)
   return state->base_font;
 }
 
-static PangoScript
-get_script (ItemizeState      *state)
-{
-  /* Always use a basic shaper for vertical layout (ie, east/west gravity)
-   * as none of our script shapers support vertical shaping right now.
-   *
-   * XXX Should move the knowledge into the shaper interface.
-   */
-
-  if (PANGO_GRAVITY_IS_VERTICAL (state->resolved_gravity))
-    return PANGO_SCRIPT_COMMON;
-  else
-    return state->script;
-}
-
 static gboolean
 get_font (ItemizeState  *state,
           gunichar       wc,
@@ -1427,21 +1412,6 @@ itemize_state_update_for_new_run (ItemizeState *state)
     }
 }
 
-static const char *
-string_from_script (PangoScript script)
-{
-  static GEnumClass *class = NULL; /* MT-safe */
-  GEnumValue *value;
-  if (g_once_init_enter (&class))
-    g_once_init_leave(&class, (gpointer)g_type_class_ref (G_TYPE_UNICODE_SCRIPT));
-
-  value = g_enum_get_value (class, script);
-  if (!value)
-    return string_from_script (G_UNICODE_SCRIPT_INVALID_CODE);
-
-  return value->value_nick;
-}
-
 static void
 itemize_state_process_run (ItemizeState *state)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]