Commit 80e046d8 authored by Ell's avatar Ell

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 363b1c98.
parent 680fecf3
......@@ -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;
/*
......
......@@ -21,7 +21,6 @@ struct _OpTransform
gdouble origin_y;
gdouble near_z;
GeglSamplerType sampler;
gboolean clip_to_input;
};
typedef struct _OpTransformClass OpTransformClass;
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment