libgimp: remove deprecated metadata functions

This commit is contained in:
Michael Natterer 2019-08-27 18:41:22 +02:00
parent b6b84f7afa
commit 91d9e4d08f
3 changed files with 0 additions and 50 deletions

View File

@ -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

View File

@ -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);
}

View File

@ -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