[gimp] app: remove gimp_layer_mask_new_from_buffer() and some includes
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove gimp_layer_mask_new_from_buffer() and some includes
- Date: Tue, 19 Jun 2018 11:21:21 +0000 (UTC)
commit 6c506509b6cb93737ac7aace09d85105415b33e8
Author: Michael Natterer <mitch gimp org>
Date: Tue Jun 19 13:20:15 2018 +0200
app: remove gimp_layer_mask_new_from_buffer() and some includes
app/core/gimplayermask.c | 30 ------------------------------
app/core/gimplayermask.h | 28 +++++++++++-----------------
2 files changed, 11 insertions(+), 47 deletions(-)
---
diff --git a/app/core/gimplayermask.c b/app/core/gimplayermask.c
index 11f105dbce..42d6787416 100644
--- a/app/core/gimplayermask.c
+++ b/app/core/gimplayermask.c
@@ -17,22 +17,15 @@
#include "config.h"
-#include <stdlib.h>
-#include <string.h>
-
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gegl.h>
-#include "libgimpmath/gimpmath.h"
-
#include "core-types.h"
#include "gegl/gimp-babl.h"
-#include "gegl/gimp-gegl-loops.h"
#include "gimperror.h"
#include "gimpimage.h"
-#include "gimpimage-undo-push.h"
#include "gimplayer.h"
#include "gimplayermask.h"
@@ -214,29 +207,6 @@ gimp_layer_mask_new (GimpImage *image,
return layer_mask;
}
-GimpLayerMask *
-gimp_layer_mask_new_from_buffer (GeglBuffer *buffer,
- GimpImage *image,
- const gchar *name,
- const GimpRGB *color)
-{
- GimpLayerMask *layer_mask;
- GeglBuffer *dest;
-
- g_return_val_if_fail (GEGL_IS_BUFFER (buffer), NULL);
- g_return_val_if_fail (GIMP_IS_IMAGE (image), NULL);
-
- layer_mask = gimp_layer_mask_new (image,
- gegl_buffer_get_width (buffer),
- gegl_buffer_get_height (buffer),
- name, color);
-
- dest = gimp_drawable_get_buffer (GIMP_DRAWABLE (layer_mask));
- gimp_gegl_buffer_copy (buffer, NULL, GEGL_ABYSS_NONE, dest, NULL);
-
- return layer_mask;
-}
-
void
gimp_layer_mask_set_layer (GimpLayerMask *layer_mask,
GimpLayer *layer)
diff --git a/app/core/gimplayermask.h b/app/core/gimplayermask.h
index c5f6c60263..d5cfd2fdf5 100644
--- a/app/core/gimplayermask.h
+++ b/app/core/gimplayermask.h
@@ -45,23 +45,17 @@ struct _GimpLayerMaskClass
};
-/* function declarations */
-
-GType gimp_layer_mask_get_type (void) G_GNUC_CONST;
-
-GimpLayerMask * gimp_layer_mask_new (GimpImage *image,
- gint width,
- gint height,
- const gchar *name,
- const GimpRGB *color);
-GimpLayerMask * gimp_layer_mask_new_from_buffer (GeglBuffer *buffer,
- GimpImage *image,
- const gchar *name,
- const GimpRGB *color);
-
-void gimp_layer_mask_set_layer (GimpLayerMask *layer_mask,
- GimpLayer *layer);
-GimpLayer * gimp_layer_mask_get_layer (GimpLayerMask *layer_mask);
+GType gimp_layer_mask_get_type (void) G_GNUC_CONST;
+
+GimpLayerMask * gimp_layer_mask_new (GimpImage *image,
+ gint width,
+ gint height,
+ const gchar *name,
+ const GimpRGB *color);
+
+void gimp_layer_mask_set_layer (GimpLayerMask *layer_mask,
+ GimpLayer *layer);
+GimpLayer * gimp_layer_mask_get_layer (GimpLayerMask *layer_mask);
#endif /* __GIMP_LAYER_MASK_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]