summaryrefslogtreecommitdiff
path: root/gtk/gtkcurve.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-10-08 05:07:55 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-10-08 05:07:55 +0000
commit07e7719441f5927bc3c482717fc53f8529186e3a (patch)
tree4baea8ab1c47987dc80120c67cb16be141a16b8d /gtk/gtkcurve.c
parente4581869b4a93ab882439673159a8f77b2396e57 (diff)
downloadgtk+-07e7719441f5927bc3c482717fc53f8529186e3a.tar.gz
Apply a cleanup patch by Kjartan Maraas (#341812)
2006-10-08 Matthias Clasen <mclasen@redhat.com> * Apply a cleanup patch by Kjartan Maraas (#341812)
Diffstat (limited to 'gtk/gtkcurve.c')
-rw-r--r--gtk/gtkcurve.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkcurve.c b/gtk/gtkcurve.c
index 469519a35e..fd7a269e56 100644
--- a/gtk/gtkcurve.c
+++ b/gtk/gtkcurve.c
@@ -794,7 +794,7 @@ gtk_curve_reset (GtkCurve *c)
void
gtk_curve_set_gamma (GtkCurve *c, gfloat gamma)
{
- gfloat x, one_over_gamma, height, one_over_width;
+ gfloat x, one_over_gamma, height;
GtkCurveType old_type;
gint i;
@@ -808,7 +808,6 @@ gtk_curve_set_gamma (GtkCurve *c, gfloat gamma)
one_over_gamma = 1.0;
else
one_over_gamma = 1.0 / gamma;
- one_over_width = 1.0 / (c->num_points - 1);
height = c->height;
for (i = 0; i < c->num_points; ++i)
{