[gtksourceview] Remove use of GLIB_CHECK_VERSION()



commit 096f14a992f5ed16681283d86a33f53facc3167b
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Mar 10 19:22:02 2013 +0100

    Remove use of GLIB_CHECK_VERSION()
    
    GLib >= 2.34 is now required, so there is no need to check whether the
    version is above 2.22.

 gtksourceview/gtksourcelanguage-parser-1.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtksourceview/gtksourcelanguage-parser-1.c b/gtksourceview/gtksourcelanguage-parser-1.c
index 7d358b4..da8828b 100644
--- a/gtksourceview/gtksourcelanguage-parser-1.c
+++ b/gtksourceview/gtksourcelanguage-parser-1.c
@@ -695,11 +695,8 @@ _gtk_source_language_file_parse_version1 (GtkSourceLanguage    *language,
        {
                doc = xmlParseMemory (g_mapped_file_get_contents (mf),
                                      g_mapped_file_get_length (mf));
-#if GLIB_CHECK_VERSION(2,22,0)
+
                g_mapped_file_unref (mf);
-#else
-               g_mapped_file_free (mf);
-#endif
        }
 
        if (doc == NULL)


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