mirror of https://github.com/GNOME/gimp.git
app: remove some #if 0'ed code from GimpToolPolygon
This commit is contained in:
parent
4ae3aed664
commit
16cfcf1bde
|
@ -55,17 +55,6 @@
|
|||
#define INVALID_INDEX (-1)
|
||||
#define NO_CLICK_TIME_AVAILABLE 0
|
||||
|
||||
#if 0
|
||||
enum
|
||||
{
|
||||
PROP_0,
|
||||
PROP_X1,
|
||||
PROP_Y1,
|
||||
PROP_X2,
|
||||
PROP_Y2
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
struct _GimpToolPolygonPrivate
|
||||
{
|
||||
|
@ -217,36 +206,6 @@ gimp_tool_polygon_class_init (GimpToolPolygonClass *klass)
|
|||
widget_class->hover_modifier = gimp_tool_polygon_hover_modifier;
|
||||
widget_class->get_cursor = gimp_tool_polygon_get_cursor;
|
||||
|
||||
#if 0
|
||||
g_object_class_install_property (object_class, PROP_X1,
|
||||
g_param_spec_double ("x1", NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE, 0,
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_Y1,
|
||||
g_param_spec_double ("y1", NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE, 0,
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_X2,
|
||||
g_param_spec_double ("x2", NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE, 0,
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
|
||||
g_object_class_install_property (object_class, PROP_Y2,
|
||||
g_param_spec_double ("y2", NULL, NULL,
|
||||
-GIMP_MAX_IMAGE_SIZE,
|
||||
GIMP_MAX_IMAGE_SIZE, 0,
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT));
|
||||
#endif
|
||||
|
||||
g_type_class_add_private (klass, sizeof (GimpToolPolygonPrivate));
|
||||
}
|
||||
|
||||
|
@ -315,21 +274,6 @@ gimp_tool_polygon_set_property (GObject *object,
|
|||
{
|
||||
switch (property_id)
|
||||
{
|
||||
#if 0
|
||||
case PROP_X1:
|
||||
private->x1 = g_value_get_double (value);
|
||||
break;
|
||||
case PROP_Y1:
|
||||
private->y1 = g_value_get_double (value);
|
||||
break;
|
||||
case PROP_X2:
|
||||
private->x2 = g_value_get_double (value);
|
||||
break;
|
||||
case PROP_Y2:
|
||||
private->y2 = g_value_get_double (value);
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
||||
break;
|
||||
|
@ -344,21 +288,6 @@ gimp_tool_polygon_get_property (GObject *object,
|
|||
{
|
||||
switch (property_id)
|
||||
{
|
||||
#if 0
|
||||
case PROP_X1:
|
||||
g_value_set_double (value, private->x1);
|
||||
break;
|
||||
case PROP_Y1:
|
||||
g_value_set_double (value, private->y1);
|
||||
break;
|
||||
case PROP_X2:
|
||||
g_value_set_double (value, private->x2);
|
||||
break;
|
||||
case PROP_Y2:
|
||||
g_value_set_double (value, private->y2);
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue