app: remove some #if 0'ed code from GimpToolPolygon

This commit is contained in:
Michael Natterer 2017-07-06 12:32:36 +02:00
parent 4ae3aed664
commit 16cfcf1bde
1 changed files with 0 additions and 71 deletions

View File

@ -55,17 +55,6 @@
#define INVALID_INDEX (-1) #define INVALID_INDEX (-1)
#define NO_CLICK_TIME_AVAILABLE 0 #define NO_CLICK_TIME_AVAILABLE 0
#if 0
enum
{
PROP_0,
PROP_X1,
PROP_Y1,
PROP_X2,
PROP_Y2
};
#endif
struct _GimpToolPolygonPrivate struct _GimpToolPolygonPrivate
{ {
@ -217,36 +206,6 @@ gimp_tool_polygon_class_init (GimpToolPolygonClass *klass)
widget_class->hover_modifier = gimp_tool_polygon_hover_modifier; widget_class->hover_modifier = gimp_tool_polygon_hover_modifier;
widget_class->get_cursor = gimp_tool_polygon_get_cursor; 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)); g_type_class_add_private (klass, sizeof (GimpToolPolygonPrivate));
} }
@ -315,21 +274,6 @@ gimp_tool_polygon_set_property (GObject *object,
{ {
switch (property_id) 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: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break; break;
@ -344,21 +288,6 @@ gimp_tool_polygon_get_property (GObject *object,
{ {
switch (property_id) 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: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break; break;