[gimp] Remove deprecated glib symbol: g_mapped_free
- From: Sven Neumann <neo src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Remove deprecated glib symbol: g_mapped_free
- Date: Mon, 9 Nov 2009 08:35:51 +0000 (UTC)
commit 525347d9f644d9d88750c384cd4ad414f887a4c4
Author: Javier Jardón <jjardon gnome org>
Date: Mon Nov 9 08:31:45 2009 +0100
Remove deprecated glib symbol: g_mapped_free
libgimpconfig/gimpscanner.c | 4 ----
plug-ins/common/file-wmf.c | 12 ------------
plug-ins/common/lcms.c | 8 --------
plug-ins/common/mail.c | 4 ----
plug-ins/file-jpeg/jpeg-exif.c | 4 ----
5 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/libgimpconfig/gimpscanner.c b/libgimpconfig/gimpscanner.c
index b0c82b5..ac7cced 100644
--- a/libgimpconfig/gimpscanner.c
+++ b/libgimpconfig/gimpscanner.c
@@ -176,11 +176,7 @@ gimp_scanner_destroy (GScanner *scanner)
data = scanner->user_data;
if (data->file)
-#if GLIB_CHECK_VERSION(2, 21, 3)
g_mapped_file_unref (data->file);
-#else
- g_mapped_file_free (data->file);
-#endif
g_free (data->name);
g_slice_free (GimpScannerData, data);
diff --git a/plug-ins/common/file-wmf.c b/plug-ins/common/file-wmf.c
index 81a6a21..2cec0fd 100644
--- a/plug-ins/common/file-wmf.c
+++ b/plug-ins/common/file-wmf.c
@@ -339,11 +339,7 @@ load_wmf_size (const gchar *filename,
success = FALSE;
wmf_mem_close (API);
-#if GLIB_CHECK_VERSION(2, 21, 3)
g_mapped_file_unref (file);
-#else
- g_mapped_file_free (file);
-#endif
if (width < 1 || height < 1)
{
@@ -874,11 +870,7 @@ wmf_get_pixbuf (const gchar *filename,
wmf_api_destroy (API);
}
-#if GLIB_CHECK_VERSION(2, 21, 3)
g_mapped_file_unref (file);
-#else
- g_mapped_file_free (file);
-#endif
return pixels;
}
@@ -963,11 +955,7 @@ wmf_load_file (const gchar *filename,
wmf_api_destroy (API);
}
-#if GLIB_CHECK_VERSION(2, 21, 3)
g_mapped_file_unref (file);
-#else
- g_mapped_file_free (file);
-#endif
/* FIXME: improve error message */
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
diff --git a/plug-ins/common/lcms.c b/plug-ins/common/lcms.c
index 6935882..833d43a 100644
--- a/plug-ins/common/lcms.c
+++ b/plug-ins/common/lcms.c
@@ -836,11 +836,7 @@ lcms_image_set_profile (gint32 image,
g_mapped_file_get_length (file),
g_mapped_file_get_contents (file));
-#if GLIB_CHECK_VERSION(2, 21, 3)
g_mapped_file_unref (file);
-#else
- g_mapped_file_free (file);
-#endif
gimp_image_parasite_attach (image, parasite);
gimp_parasite_free (parasite);
@@ -1133,11 +1129,7 @@ lcms_load_profile (const gchar *filename,
gimp_filename_to_utf8 (filename));
}
-#if GLIB_CHECK_VERSION(2, 21, 3)
g_mapped_file_unref (file);
-#else
- g_mapped_file_free (file);
-#endif
return profile;
}
diff --git a/plug-ins/common/mail.c b/plug-ins/common/mail.c
index 8f5625a..5e09eb7 100644
--- a/plug-ins/common/mail.c
+++ b/plug-ins/common/mail.c
@@ -706,11 +706,7 @@ to64 (const gchar *filename,
bytes = g_base64_encode_close (TRUE, out, &state, &save);
fwrite (out, 1, bytes, outfile);
-#if GLIB_CHECK_VERSION(2, 21, 3)
g_mapped_file_unref (infile);
-#else
- g_mapped_file_free (infile);
-#endif
return TRUE;
}
diff --git a/plug-ins/file-jpeg/jpeg-exif.c b/plug-ins/file-jpeg/jpeg-exif.c
index 86cbe76..a547386 100644
--- a/plug-ins/file-jpeg/jpeg-exif.c
+++ b/plug-ins/file-jpeg/jpeg-exif.c
@@ -76,11 +76,7 @@ jpeg_exif_data_new_from_file (const gchar *filename,
data = exif_data_new_from_data ((guchar *) g_mapped_file_get_contents (file),
g_mapped_file_get_length (file));
-#if GLIB_CHECK_VERSION(2, 21, 3)
g_mapped_file_unref (file);
-#else
- g_mapped_file_free (file);
-#endif
return data;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]