[gimp] Remove gimp_image_get_layer,channel,vectors_by_index()
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Remove gimp_image_get_layer,channel,vectors_by_index()
- Date: Sun, 2 Aug 2009 13:57:03 +0000 (UTC)
commit ec21c2880cdca327f5fbc1dbcbff1ca2b7d51cff
Author: Michael Natterer <mitch gimp org>
Date: Sun Aug 2 15:56:06 2009 +0200
Remove gimp_image_get_layer,channel,vectors_by_index()
The don't make sense any longer with item trees and I just fixed the
last places where they were used.
app/core/gimpimage.c | 30 ------------------------------
app/core/gimpimage.h | 7 -------
2 files changed, 0 insertions(+), 37 deletions(-)
---
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index 5818cf7..c4e6a2e 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -2884,36 +2884,6 @@ gimp_image_set_active_vectors (GimpImage *image,
}
GimpLayer *
-gimp_image_get_layer_by_index (const GimpImage *image,
- gint index)
-{
- g_return_val_if_fail (GIMP_IS_IMAGE (image), NULL);
-
- return (GimpLayer *) gimp_container_get_child_by_index (image->layers,
- index);
-}
-
-GimpChannel *
-gimp_image_get_channel_by_index (const GimpImage *image,
- gint index)
-{
- g_return_val_if_fail (GIMP_IS_IMAGE (image), NULL);
-
- return (GimpChannel *) gimp_container_get_child_by_index (image->channels,
- index);
-}
-
-GimpVectors *
-gimp_image_get_vectors_by_index (const GimpImage *image,
- gint index)
-{
- g_return_val_if_fail (GIMP_IS_IMAGE (image), NULL);
-
- return (GimpVectors *) gimp_container_get_child_by_index (image->vectors,
- index);
-}
-
-GimpLayer *
gimp_image_get_layer_by_tattoo (const GimpImage *image,
GimpTattoo tattoo)
{
diff --git a/app/core/gimpimage.h b/app/core/gimpimage.h
index 1a312d5..32110b3 100644
--- a/app/core/gimpimage.h
+++ b/app/core/gimpimage.h
@@ -446,13 +446,6 @@ GimpChannel * gimp_image_unset_active_channel (GimpImage *image);
GimpVectors * gimp_image_set_active_vectors (GimpImage *image,
GimpVectors *vectors);
-GimpLayer * gimp_image_get_layer_by_index (const GimpImage *image,
- gint index);
-GimpChannel * gimp_image_get_channel_by_index (const GimpImage *image,
- gint index);
-GimpVectors * gimp_image_get_vectors_by_index (const GimpImage *image,
- gint index);
-
GimpLayer * gimp_image_get_layer_by_tattoo (const GimpImage *image,
GimpTattoo tattoo);
GimpChannel * gimp_image_get_channel_by_tattoo (const GimpImage *image,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]