[gimp] app: remove some #if 0'ed code from GimpToolPolygon
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove some #if 0'ed code from GimpToolPolygon
- Date: Thu, 6 Jul 2017 10:33:14 +0000 (UTC)
commit 16cfcf1bdea4383bc157f2561a5653d26177208f
Author: Michael Natterer <mitch gimp org>
Date: Thu Jul 6 12:32:36 2017 +0200
app: remove some #if 0'ed code from GimpToolPolygon
app/display/gimptoolpolygon.c | 71 -----------------------------------------
1 files changed, 0 insertions(+), 71 deletions(-)
---
diff --git a/app/display/gimptoolpolygon.c b/app/display/gimptoolpolygon.c
index a0cb526..dc7b157 100644
--- a/app/display/gimptoolpolygon.c
+++ b/app/display/gimptoolpolygon.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]