diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-07-04 15:22:56 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-07-04 15:22:56 +0000 |
commit | 9077d7fb83fbc09f777a3d482d6c7ad60f1d786a (patch) | |
tree | e9d8424853c321cee5c97ecf2b3867e473fca359 /pango | |
parent | 9eff435d13228cf57d951673220ca569392fd803 (diff) | |
download | pango-9077d7fb83fbc09f777a3d482d6c7ad60f1d786a.tar.gz |
Drop g_type_init calls
These were ifdefed to an older version of GLib
than we require now, so are just dead code.
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pangocairo-fontmap.c | 8 | ||||
-rw-r--r-- | pango/pangoft2-fontmap.c | 5 | ||||
-rw-r--r-- | pango/pangowin32-fontmap.c | 5 | ||||
-rw-r--r-- | pango/pangoxft-fontmap.c | 5 |
4 files changed, 0 insertions, 23 deletions
diff --git a/pango/pangocairo-fontmap.c b/pango/pangocairo-fontmap.c index 177dbbce..dce640e3 100644 --- a/pango/pangocairo-fontmap.c +++ b/pango/pangocairo-fontmap.c @@ -76,10 +76,6 @@ pango_cairo_font_map_new (void) const char *backend = getenv ("PANGOCAIRO_BACKEND"); if (backend && !*backend) backend = NULL; -#if !GLIB_CHECK_VERSION (2, 35, 3) - /* Make sure that the type system is initialized */ - g_type_init (); -#endif #if defined(HAVE_CORE_TEXT) && defined (HAVE_CAIRO_QUARTZ) if (!backend || 0 == strcmp (backend, "coretext")) return g_object_new (PANGO_TYPE_CAIRO_CORE_TEXT_FONT_MAP, NULL); @@ -131,10 +127,6 @@ pango_cairo_font_map_new (void) PangoFontMap * pango_cairo_font_map_new_for_font_type (cairo_font_type_t fonttype) { -#if !GLIB_CHECK_VERSION (2, 35, 3) - /* Make sure that the type system is initialized */ - g_type_init (); -#endif switch ((int) fonttype) { #if defined(HAVE_CORE_TEXT) && defined (HAVE_CAIRO_QUARTZ) diff --git a/pango/pangoft2-fontmap.c b/pango/pangoft2-fontmap.c index 617def07..60ca3e79 100644 --- a/pango/pangoft2-fontmap.c +++ b/pango/pangoft2-fontmap.c @@ -142,11 +142,6 @@ pango_ft2_font_map_finalize (GObject *object) PangoFontMap * pango_ft2_font_map_new (void) { -#if !GLIB_CHECK_VERSION (2, 35, 3) - /* Make sure that the type system is initialized */ - g_type_init (); -#endif - return (PangoFontMap *) g_object_new (PANGO_TYPE_FT2_FONT_MAP, NULL); } diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c index 0cf8f5a0..130b76e9 100644 --- a/pango/pangowin32-fontmap.c +++ b/pango/pangowin32-fontmap.c @@ -796,11 +796,6 @@ _pango_win32_font_map_class_init (PangoWin32FontMapClass *class) PangoFontMap * pango_win32_font_map_for_display (void) { -#if !GLIB_CHECK_VERSION (2, 35, 3) - /* Make sure that the type system is initialized */ - g_type_init (); -#endif - if (g_once_init_enter ((gsize*)&default_fontmap)) g_once_init_leave((gsize*)&default_fontmap, (gsize)g_object_new (PANGO_TYPE_WIN32_FONT_MAP, NULL)); diff --git a/pango/pangoxft-fontmap.c b/pango/pangoxft-fontmap.c index fd96816d..674e006b 100644 --- a/pango/pangoxft-fontmap.c +++ b/pango/pangoxft-fontmap.c @@ -234,11 +234,6 @@ pango_xft_get_font_map (Display *display, if (fontmap) return fontmap; -#if !GLIB_CHECK_VERSION (2, 35, 3) - /* Make sure that the type system is initialized */ - g_type_init (); -#endif - xftfontmap = (PangoXftFontMap *)g_object_new (PANGO_TYPE_XFT_FONT_MAP, NULL); xftfontmap->display = display; |