[gnome-photos] gegl: Remove unused function
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] gegl: Remove unused function
- Date: Sun, 26 Nov 2017 10:12:26 +0000 (UTC)
commit 42fc086eabe602fe9bcd4c9c1849efebdbb42601
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Nov 24 07:44:17 2017 +0100
gegl: Remove unused function
https://bugzilla.gnome.org/show_bug.cgi?id=781736
src/photos-gegl.c | 27 ---------------------------
src/photos-gegl.h | 2 --
2 files changed, 0 insertions(+), 29 deletions(-)
---
diff --git a/src/photos-gegl.c b/src/photos-gegl.c
index 2127efb..24da73c 100644
--- a/src/photos-gegl.c
+++ b/src/photos-gegl.c
@@ -374,33 +374,6 @@ photos_gegl_buffer_zoom_finish (GeglBuffer *buffer, GAsyncResult *res, GError **
}
-GeglNode *
-photos_gegl_create_orientation_node (GeglNode *parent, GQuark orientation)
-{
- GeglNode *ret_val = NULL;
- double degrees = 1.0;
-
- if (orientation == PHOTOS_ORIENTATION_TOP)
- goto out;
-
- if (orientation == PHOTOS_ORIENTATION_BOTTOM)
- degrees = -180.0;
- else if (orientation == PHOTOS_ORIENTATION_LEFT)
- degrees = -270.0;
- else if (orientation == PHOTOS_ORIENTATION_RIGHT)
- degrees = -90.0;
-
- if (degrees < 0.0)
- ret_val = gegl_node_new_child (parent, "operation", "gegl:rotate-on-center", "degrees", degrees, NULL);
-
- out:
- if (ret_val == NULL)
- ret_val = gegl_node_new_child (parent, "operation", "gegl:nop", NULL);
-
- return ret_val;
-}
-
-
GdkPixbuf *
photos_gegl_create_pixbuf_from_node (GeglNode *node)
{
diff --git a/src/photos-gegl.h b/src/photos-gegl.h
index 01e7cc9..db79981 100644
--- a/src/photos-gegl.h
+++ b/src/photos-gegl.h
@@ -41,8 +41,6 @@ void photos_gegl_buffer_zoom_async (GeglBuffer *buffer,
GeglBuffer *photos_gegl_buffer_zoom_finish (GeglBuffer *buffer, GAsyncResult *res, GError
**error);
-GeglNode *photos_gegl_create_orientation_node (GeglNode *parent, GQuark orientation);
-
GdkPixbuf *photos_gegl_create_pixbuf_from_node (GeglNode *node);
GeglBuffer *photos_gegl_dup_buffer_from_node (GeglNode *node, const Babl *format);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]