[gimp/goat-invasion: 187/325] app: remove gimp_layer_new_from_tiles(), it's now unused



commit 0d661c6d15deb5fa504f592d0d5bd5205bffb278
Author: Michael Natterer <mitch gimp org>
Date:   Wed Mar 21 14:46:32 2012 +0100

    app: remove gimp_layer_new_from_tiles(), it's now unused

 app/core/gimplayer.c |   42 ------------------------------------------
 app/core/gimplayer.h |    7 -------
 2 files changed, 0 insertions(+), 49 deletions(-)
---
diff --git a/app/core/gimplayer.c b/app/core/gimplayer.c
index 25dacef..4fca49b 100644
--- a/app/core/gimplayer.c
+++ b/app/core/gimplayer.c
@@ -1146,48 +1146,6 @@ gimp_layer_new_from_buffer (GeglBuffer           *buffer,
 }
 
 /**
- * gimp_layer_new_from_tiles:
- * @tiles:      The buffer to make the new layer from.
- * @format:     The tiles' pixel format
- * @dest_image: The image the new layer will be added to.
- * @type:       The #GimpImageType of the new layer.
- * @name:       The new layer's name.
- * @opacity:    The new layer's opacity.
- * @mode:       The new layer's mode.
- *
- * Copies %tiles to a layer taking into consideration the
- * possibility of transforming the contents to meet the requirements
- * of the target image type
- *
- * Return value: The new layer.
- **/
-GimpLayer *
-gimp_layer_new_from_tiles (TileManager          *tiles,
-                           const Babl           *format,
-                           GimpImage            *dest_image,
-                           GimpImageType         type,
-                           const gchar          *name,
-                           gdouble               opacity,
-                           GimpLayerModeEffects  mode)
-{
-  GeglBuffer *buffer;
-  GimpLayer  *layer;
-
-  g_return_val_if_fail (tiles != NULL, NULL);
-  g_return_val_if_fail (format != NULL, NULL);
-  g_return_val_if_fail (GIMP_IS_IMAGE (dest_image), NULL);
-
-  buffer = gimp_tile_manager_create_buffer (tiles, format);
-
-  layer = gimp_layer_new_from_buffer (buffer, dest_image, type,
-                                      name, opacity, mode);
-
-  g_object_unref (buffer);
-
-  return layer;
-}
-
-/**
  * gimp_layer_new_from_pixbuf:
  * @pixbuf:     The pixbuf to make the new layer from.
  * @dest_image: The image the new layer will be added to.
diff --git a/app/core/gimplayer.h b/app/core/gimplayer.h
index 3903a36..11f8245 100644
--- a/app/core/gimplayer.h
+++ b/app/core/gimplayer.h
@@ -89,13 +89,6 @@ GimpLayer     * gimp_layer_new_from_buffer     (GeglBuffer           *buffer,
                                                 const gchar          *name,
                                                 gdouble               opacity,
                                                 GimpLayerModeEffects  mode);
-GimpLayer     * gimp_layer_new_from_tiles      (TileManager          *tiles,
-                                                const Babl           *format,
-                                                GimpImage            *dest_image,
-                                                GimpImageType         type,
-                                                const gchar          *name,
-                                                gdouble               opacity,
-                                                GimpLayerModeEffects  mode);
 GimpLayer     * gimp_layer_new_from_pixbuf     (GdkPixbuf            *pixbuf,
                                                 GimpImage            *dest_image,
                                                 GimpImageType         type,



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