[gimp] libgimp: remove gimp_layer_new_from_surface_deprecated()



commit f6a97c178ca87551edd397a58a2442fb266a30fc
Author: Michael Natterer <mitch gimp org>
Date:   Wed Aug 28 03:12:50 2019 +0200

    libgimp: remove gimp_layer_new_from_surface_deprecated()

 libgimp/gimp.def    |  1 -
 libgimp/gimplayer.c | 38 --------------------------------------
 libgimp/gimplayer.h |  7 -------
 3 files changed, 46 deletions(-)
---
diff --git a/libgimp/gimp.def b/libgimp/gimp.def
index 4075431ee6..afca909501 100644
--- a/libgimp/gimp.def
+++ b/libgimp/gimp.def
@@ -574,7 +574,6 @@ EXPORTS
        gimp_layer_new_from_drawable
        gimp_layer_new_from_pixbuf
        gimp_layer_new_from_surface
-       gimp_layer_new_from_surface_deprecated
        gimp_layer_new_from_visible
        gimp_layer_remove_mask
        gimp_layer_resize
diff --git a/libgimp/gimplayer.c b/libgimp/gimplayer.c
index def792bd47..677df53587 100644
--- a/libgimp/gimplayer.c
+++ b/libgimp/gimplayer.c
@@ -320,44 +320,6 @@ gimp_layer_new_deprecated (gint32         image_id,
   return gimp_item_get_id (GIMP_ITEM (layer));
 }
 
-/**
- * gimp_layer_new_from_surface_deprecated: (skip)
- * @image_id:        The RGB image to which to add the layer.
- * @name:            The layer name.
- * @surface:         A Cairo image surface.
- * @progress_start:  start of progress
- * @progress_end:    end of progress
- *
- * Create a new layer from a #cairo_surface_t.
- *
- * This procedure creates a new layer from the given
- * #cairo_surface_t. The image has to be an RGB image and just like
- * with gimp_layer_new() you will still need to add the layer to it.
- *
- * If you pass @progress_end > @progress_start to this function,
- * gimp_progress_update() will be called for. You have to call
- * gimp_progress_init() beforehand then.
- *
- * Returns: The newly created layer ID.
- *
- * Since: 2.8
- */
-gint32
-gimp_layer_new_from_surface_deprecated (gint32                image_id,
-                                        const gchar          *name,
-                                        cairo_surface_t      *surface,
-                                        gdouble               progress_start,
-                                        gdouble               progress_end)
-{
-  GimpLayer *layer;
-
-  layer = gimp_layer_new_from_surface (gimp_image_get_by_id (image_id),
-                                       name, surface,
-                                       progress_start, progress_end);
-
-  return gimp_item_get_id (GIMP_ITEM (layer));
-}
-
 /**
  * gimp_layer_copy_deprecated: (skip)
  * @layer_ID: The layer to copy.
diff --git a/libgimp/gimplayer.h b/libgimp/gimplayer.h
index 7fe5bd9c8c..9885a856a1 100644
--- a/libgimp/gimplayer.h
+++ b/libgimp/gimplayer.h
@@ -94,7 +94,6 @@ GimpLayer * gimp_layer_copy               (GimpLayer       *layer);
 #else /* GIMP_DEPRECATED_REPLACE_NEW_API */
 
 #define gimp_layer_new              gimp_layer_new_deprecated
-#define gimp_layer_new_from_surface gimp_layer_new_from_surface_deprecated
 #define gimp_layer_copy             gimp_layer_copy_deprecated
 
 #endif /* GIMP_DEPRECATED_REPLACE_NEW_API */
@@ -107,12 +106,6 @@ gint32   gimp_layer_new_deprecated              (gint32           image_id,
                                                  gdouble          opacity,
                                                  GimpLayerMode    mode);
 
-gint32   gimp_layer_new_from_surface_deprecated (gint32           image_id,
-                                                 const gchar     *name,
-                                                 cairo_surface_t *surface,
-                                                 gdouble          progress_start,
-                                                 gdouble          progress_end);
-
 gint32   gimp_layer_copy_deprecated             (gint32           layer_ID);
 
 


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