[gegl] transform: remove clip-to-input property



commit 80e046d8d94275174b1121d5cccfed447d918f18
Author: Ell <ell_se yahoo com>
Date:   Sun Jan 28 16:07:54 2018 -0500

    transform: remove clip-to-input property
    
    This property was added for GIMP to use, as a workaround for a bug
    that no longer exists, and is no longer needed.  Hopefully not used
    by anyone else, and safe to remove.
    
    This reverts commit 363b1c983be018c5fb344f1e482f1dbd0e6fe6a6.

 operations/transform/transform-core.c |   19 ++-----------------
 operations/transform/transform-core.h |    1 -
 tests/xml/data/rgb-params.xml         |    1 -
 3 files changed, 2 insertions(+), 19 deletions(-)
---
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index 3751eb9..db0f307 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -49,8 +49,7 @@ enum
   PROP_ORIGIN_X = 1,
   PROP_ORIGIN_Y,
   PROP_NEAR_Z,
-  PROP_SAMPLER,
-  PROP_CLIP_TO_INPUT
+  PROP_SAMPLER
 };
 
 static void          gegl_transform_get_property                 (GObject              *object,
@@ -228,13 +227,6 @@ op_transform_class_init (OpTransformClass *klass)
                                      gegl_sampler_type_get_type (),
                                      GEGL_SAMPLER_LINEAR,
                                      G_PARAM_CONSTRUCT | G_PARAM_READWRITE));
-  g_object_class_install_property (gobject_class, PROP_CLIP_TO_INPUT,
-                                   g_param_spec_boolean (
-                                     "clip-to-input",
-                                     _("Clip to input"),
-                                     _("Force output bounding box to be input bounding box."),
-                                     FALSE,
-                                     G_PARAM_CONSTRUCT | G_PARAM_READWRITE));
 }
 
 static void
@@ -264,9 +256,6 @@ gegl_transform_get_property (GObject    *object,
     case PROP_SAMPLER:
       g_value_set_enum (value, self->sampler);
       break;
-    case PROP_CLIP_TO_INPUT:
-      g_value_set_boolean (value, self->clip_to_input);
-      break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
@@ -295,9 +284,6 @@ gegl_transform_set_property (GObject      *object,
     case PROP_SAMPLER:
       self->sampler = g_value_get_enum (value);
       break;
-    case PROP_CLIP_TO_INPUT:
-      self->clip_to_input = g_value_get_boolean (value);
-      break;
     default:
       G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
       break;
@@ -760,8 +746,7 @@ gegl_transform_get_bounding_box (GeglOperation *op)
   gegl_transform_create_composite_matrix (transform, &matrix, &near_z);
 
   if (gegl_transform_is_intermediate_node (transform) ||
-      gegl_matrix3_is_identity (&matrix) ||
-      transform->clip_to_input)
+      gegl_matrix3_is_identity (&matrix))
     return in_rect;
 
   /*
diff --git a/operations/transform/transform-core.h b/operations/transform/transform-core.h
index 0339e6d..d0e7941 100644
--- a/operations/transform/transform-core.h
+++ b/operations/transform/transform-core.h
@@ -21,7 +21,6 @@ struct _OpTransform
   gdouble             origin_y;
   gdouble             near_z;
   GeglSamplerType     sampler;
-  gboolean            clip_to_input;
 };
 
 typedef struct _OpTransformClass OpTransformClass;
diff --git a/tests/xml/data/rgb-params.xml b/tests/xml/data/rgb-params.xml
index 81b3075..88f1ae1 100644
--- a/tests/xml/data/rgb-params.xml
+++ b/tests/xml/data/rgb-params.xml
@@ -10,7 +10,6 @@
             <param name='origin-y'>0</param>
             <param name='near-z'>0</param>
             <param name='sampler'>linear</param>
-            <param name='clip-to-input'>false</param>
             <param name='x'>5</param>
             <param name='y'>0</param>
           </params>


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