[gnome-photos] gegl-gtk-view-helper: Remove code for old GEGL versions
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] gegl-gtk-view-helper: Remove code for old GEGL versions
- Date: Mon, 16 Feb 2015 08:29:51 +0000 (UTC)
commit 081fd8ee69fca32f5585d404c5e685614c35296b
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Feb 15 14:17:41 2015 +0100
gegl-gtk-view-helper: Remove code for old GEGL versions
From gegl-gtk commit 828051c9d8af05924f764ae0d40024a3134667a5
src/gegl-gtk-view-helper.c | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/src/gegl-gtk-view-helper.c b/src/gegl-gtk-view-helper.c
index 99db47e..c9a842e 100644
--- a/src/gegl-gtk-view-helper.c
+++ b/src/gegl-gtk-view-helper.c
@@ -430,11 +430,6 @@ void view_helper_get_transformation(ViewHelper *self, GeglMatrix3 *matrix)
/* XXX: Below gives the right result, but is it really the
* way we want transformations to work? */
- /* API change in GEGL 1.7 (1.6+git):
- * GeglMatrix3 changed from float[3][3] to
- * struct with a float[3][3] coeff member */
-
-#if GEGL_MINOR_VERSION == 1 && GEGL_MICRO_VERSION >= 7 || GEGL_MINOR_VERSION >= 2
matrix->coeff [0][0] = self->scale; /* xx */
matrix->coeff [0][1] = 0.0; /* xy */
matrix->coeff [0][2] = -self->x; /* x0 */
@@ -446,20 +441,6 @@ void view_helper_get_transformation(ViewHelper *self, GeglMatrix3 *matrix)
matrix->coeff [2][0] = 0.0;
matrix->coeff [2][1] = 0.0;
matrix->coeff [2][2] = 1.0;
-#else
- (*matrix) [0][0] = self->scale;
- (*matrix) [0][1] = 0.0;
- (*matrix) [0][2] = -self->x;
-
- (*matrix) [1][0] = 0.0;
- (*matrix) [1][1] = self->scale;
- (*matrix) [1][2] = -self->y;
-
- (*matrix) [2][0] = 0.0;
- (*matrix) [2][1] = 0.0;
- (*matrix) [2][2] = 1.0;
-#endif
-
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]