From dd209e7c581dd4dcf6f02e820d0a383f981f19eb Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 2 Jul 2014 17:45:14 +0200 Subject: Remove deprecated code --- src/gpm-backlight-helper.c | 5 ----- src/gpm-main.c | 11 ----------- src/gpm-statistics.c | 7 ------- 3 files changed, 23 deletions(-) diff --git a/src/gpm-backlight-helper.c b/src/gpm-backlight-helper.c index 07ad25f..4350f16 100644 --- a/src/gpm-backlight-helper.c +++ b/src/gpm-backlight-helper.c @@ -178,11 +178,6 @@ main (gint argc, gchar *argv[]) bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); -#if !GLIB_CHECK_VERSION(2,36,0) - /* setup type system */ - g_type_init (); -#endif - context = g_option_context_new (NULL); /* TRANSLATORS: tool that is used when copying profiles system-wide */ g_option_context_set_summary (context, _("MATE Power Manager Backlight Helper")); diff --git a/src/gpm-main.c b/src/gpm-main.c index 054cf3b..71ba598 100644 --- a/src/gpm-main.c +++ b/src/gpm-main.c @@ -183,14 +183,7 @@ main (int argc, char *argv[]) bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); -#if !GLIB_CHECK_VERSION(2,32,0) - if (! g_thread_supported ()) - g_thread_init (NULL); -#endif dbus_g_thread_init (); -#if !GLIB_CHECK_VERSION(2,36,0) - g_type_init (); -#endif context = g_option_context_new (N_("MATE Power Manager")); /* TRANSLATORS: program name, a simple app to view pending updates */ @@ -204,10 +197,6 @@ main (int argc, char *argv[]) goto unref_program; } -#if !GLIB_CHECK_VERSION(2,32,0) - if (!g_thread_supported ()) - g_thread_init (NULL); -#endif dbus_g_thread_init (); gtk_init (&argc, &argv); diff --git a/src/gpm-statistics.c b/src/gpm-statistics.c index 13489dc..ea17703 100644 --- a/src/gpm-statistics.c +++ b/src/gpm-statistics.c @@ -1571,14 +1571,7 @@ main (int argc, char *argv[]) bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); -#if !GLIB_CHECK_VERSION(2,32,0) - if (! g_thread_supported ()) - g_thread_init (NULL); -#endif dbus_g_thread_init (); -#if !GLIB_CHECK_VERSION(2,36,0) - g_type_init (); -#endif context = g_option_context_new (NULL); /* TRANSLATORS: the program name */ -- cgit v1.2.1