[gimp] libgimp: remove deprecated metadata functions



commit 91d9e4d08f3089a75b3b0e00669f0baebef62cfc
Author: Michael Natterer <mitch gimp org>
Date:   Tue Aug 27 18:41:22 2019 +0200

    libgimp: remove deprecated metadata functions

 libgimp/gimp.def    |  2 --
 libgimp/gimpimage.c | 41 -----------------------------------------
 libgimp/gimpimage.h |  7 -------
 3 files changed, 50 deletions(-)
---
diff --git a/libgimp/gimp.def b/libgimp/gimp.def
index 378547a9fb..4075431ee6 100644
--- a/libgimp/gimp.def
+++ b/libgimp/gimp.def
@@ -403,7 +403,6 @@ EXPORTS
        gimp_image_get_layers
        gimp_image_get_layers_deprecated
        gimp_image_get_metadata
-       gimp_image_get_metadata_deprecated
        gimp_image_get_name
        gimp_image_get_parasite
        gimp_image_get_parasite_list
@@ -479,7 +478,6 @@ EXPORTS
        gimp_image_set_component_visible
        gimp_image_set_filename
        gimp_image_set_metadata
-       gimp_image_set_metadata_deprecated
        gimp_image_set_resolution
        gimp_image_set_tattoo_state
        gimp_image_set_unit
diff --git a/libgimp/gimpimage.c b/libgimp/gimpimage.c
index 8338de172a..8898cce1f9 100644
--- a/libgimp/gimpimage.c
+++ b/libgimp/gimpimage.c
@@ -714,44 +714,3 @@ gimp_image_set_colormap_deprecated (gint32        image_id,
   return gimp_image_set_colormap (gimp_image_get_by_id (image_id),
                                   colormap, num_colors);
 }
-
-/**
- * gimp_image_get_metadata_deprecated: (skip)
- * @image_id: The image.
- *
- * Returns the image's metadata.
- *
- * Returns exif/iptc/xmp metadata from the image.
- *
- * Returns: (nullable) (transfer full): The exif/ptc/xmp metadata,
- *          or %NULL if there is none.
- *
- * Since: 2.10
- **/
-GimpMetadata *
-gimp_image_get_metadata_deprecated (gint32 image_id)
-{
-  return gimp_image_get_metadata (gimp_image_get_by_id (image_id));
-}
-
-/**
- * gimp_image_set_metadata_deprecated: (skip)
- * @image_id: The image.
- * @metadata: The exif/ptc/xmp metadata.
- *
- * Set the image's metadata.
- *
- * Sets exif/iptc/xmp metadata on the image, or deletes it if
- * @metadata is %NULL.
- *
- * Returns: TRUE on success.
- *
- * Since: 2.10
- **/
-gboolean
-gimp_image_set_metadata_deprecated (gint32        image_id,
-                                    GimpMetadata *metadata)
-{
-  return gimp_image_set_metadata (gimp_image_get_by_id (image_id),
-                                  metadata);
-}
diff --git a/libgimp/gimpimage.h b/libgimp/gimpimage.h
index 75afd24543..2e915cc634 100644
--- a/libgimp/gimpimage.h
+++ b/libgimp/gimpimage.h
@@ -109,12 +109,9 @@ gboolean       gimp_image_set_metadata       (GimpImage    *image,
 #define gimp_image_get_layers         gimp_image_get_layers_deprecated
 #define gimp_image_get_colormap       gimp_image_get_colormap_deprecated
 #define gimp_image_set_colormap       gimp_image_set_colormap_deprecated
-#define gimp_image_get_metadata       gimp_image_get_metadata_deprecated
-#define gimp_image_set_metadata       gimp_image_set_metadata_deprecated
 
 #endif /* GIMP_DEPRECATED_REPLACE_NEW_API */
 
-
 gint         * gimp_image_get_layers_deprecated         (gint32         image_id,
                                                          gint          *num_layers);
 guchar       * gimp_image_get_colormap_deprecated       (gint32        image_id,
@@ -123,10 +120,6 @@ gboolean       gimp_image_set_colormap_deprecated       (gint32        image_id,
                                                          const guchar *colormap,
                                                          gint          num_colors);
 
-GimpMetadata * gimp_image_get_metadata_deprecated       (gint32        image_id);
-gboolean       gimp_image_set_metadata_deprecated       (gint32        image_id,
-                                                         GimpMetadata *metadata);
-
 
 G_END_DECLS
 


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