From 597c6684b817f34dd9dfb5bfc2943c0e2f052d93 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sat, 12 Jul 2014 16:05:49 +0200 Subject: libmate-desktop: Remove some compatibility with glib < 2.32 --- libmate-desktop/mate-gsettings.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'libmate-desktop') diff --git a/libmate-desktop/mate-gsettings.c b/libmate-desktop/mate-gsettings.c index 8f20e98..c29bcde 100644 --- a/libmate-desktop/mate-gsettings.c +++ b/libmate-desktop/mate-gsettings.c @@ -37,32 +37,15 @@ gboolean mate_gsettings_schema_exists (const gchar* schema) { -#if GLIB_CHECK_VERSION (2, 40, 0) GSettingsSchemaSource *schema_source; GSettingsSchema *schema_schema; -#else - const char * const *schemas; - gint i; -#endif gboolean schema_exists; -#if GLIB_CHECK_VERSION (2, 40, 0) schema_source = g_settings_schema_source_get_default(); schema_schema = g_settings_schema_source_lookup (schema_source, schema, FALSE); schema_exists = (schema_schema != NULL); if (schema_schema) g_settings_schema_unref (schema_schema); -#else - schemas = g_settings_list_schemas (); - schema_exists = FALSE; - - for (i = 0; schemas[i] != NULL; i++) { - if (g_strcmp0 (schemas[i], schema) == 0) { - schema_exists = TRUE; - break; - } - } -#endif return schema_exists; } -- cgit v1.2.1