[gimp/metadata-browser] jigsaw: Remove dead assignments (and variables)
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] jigsaw: Remove dead assignments (and variables)
- Date: Fri, 2 Dec 2011 02:05:24 +0000 (UTC)
commit aa3dd98473fb5e68b88f3fddaa8c6e1001a4da46
Author: Mukund Sivaraman <muks banu com>
Date: Tue Oct 4 14:18:43 2011 +0530
jigsaw: Remove dead assignments (and variables)
plug-ins/common/jigsaw.c | 30 +++---------------------------
1 files changed, 3 insertions(+), 27 deletions(-)
---
diff --git a/plug-ins/common/jigsaw.c b/plug-ins/common/jigsaw.c
index 9574afb..8cf8249 100644
--- a/plug-ins/common/jigsaw.c
+++ b/plug-ins/common/jigsaw.c
@@ -630,19 +630,10 @@ draw_vertical_border (guchar *buffer,
gdouble delta;
gdouble sigma = blend_amount / blend_lines;
gint right;
- bump_t style_index;
for (i = 0; i < ytiles; i++)
{
right = g_random_int_range (0, 2);
- if (right)
- {
- style_index = RIGHT;
- }
- else
- {
- style_index = LEFT;
- }
/* first straight line from top downwards */
px[0] = px[1] = x_offset;
@@ -754,6 +745,7 @@ draw_horizontal_border (guchar *buffer,
for (i = 0; i < xtiles; i++)
{
up = g_random_int_range (0, 2);
+
/* first horizontal line across */
px[0] = x_offset; px[1] = x_offset + curve_start_offset - 1;
py[0] = py[1] = y_offset;
@@ -2111,7 +2103,6 @@ draw_bezier_vertical_border (guchar *buffer,
gdouble delta;
gdouble sigma = blend_amount / blend_lines;
gint right;
- bump_t style_index;
gint *cachex, *cachey;
cachex = g_new (gint, steps);
@@ -2120,14 +2111,7 @@ draw_bezier_vertical_border (guchar *buffer,
for (i = 0; i < ytiles; i++)
{
right = g_random_int_range (0, 2);
- if (right)
- {
- style_index = RIGHT;
- }
- else
- {
- style_index = LEFT;
- }
+
px[0] = px[3] = x_offset;
px[1] = x_offset + WALL_XFACTOR2 * tile_width * FUDGE;
px[2] = x_offset + WALL_XFACTOR3 * tile_width * FUDGE;
@@ -2247,7 +2231,6 @@ draw_bezier_horizontal_border (guchar *buffer,
gdouble delta;
gdouble sigma = blend_amount / blend_lines;
gint up;
- style_t style_index;
gint *cachex, *cachey;
cachex = g_new (gint, steps);
@@ -2256,14 +2239,7 @@ draw_bezier_horizontal_border (guchar *buffer,
for (i = 0; i < xtiles; i++)
{
up = g_random_int_range (0, 2);
- if (up)
- {
- style_index = UP;
- }
- else
- {
- style_index = DOWN;
- }
+
px[0] = x_offset;
px[1] = x_offset + WALL_XCONS2 * tile_width;
px[2] = x_offset + WALL_XCONS3 * tile_width;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]