From 11e907770a0a7bceea240de30517f2237e5fe128 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 11 Nov 2011 13:52:15 +0000 Subject: [PATCH] Fix warnings. git-svn-id: svn://localhost/ardour2/branches/3.0@10537 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/canvas-waveview.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gtk2_ardour/canvas-waveview.c b/gtk2_ardour/canvas-waveview.c index 1e28a27330..03a4fa4ff9 100644 --- a/gtk2_ardour/canvas-waveview.c +++ b/gtk2_ardour/canvas-waveview.c @@ -385,13 +385,9 @@ gnome_canvas_waveview_init (GnomeCanvasWaveView *waveview) static void gnome_canvas_waveview_destroy (GtkObject *object) { - GnomeCanvasWaveView *waveview; - g_return_if_fail (object != NULL); g_return_if_fail (GNOME_IS_CANVAS_WAVEVIEW (object)); - waveview = GNOME_CANVAS_WAVEVIEW (object); - if (GTK_OBJECT_CLASS (parent_class)->destroy) (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); } @@ -1642,7 +1638,6 @@ gnome_canvas_waveview_draw (GnomeCanvasItem *item, int cache_index; gboolean rectify; double origin; - double clip_length; double xoff; double yoff = 0.0; double ulx; @@ -1707,8 +1702,6 @@ gnome_canvas_waveview_draw (GnomeCanvasItem *item, rectify = FALSE; } - clip_length = MIN(5,(waveview->height/4)); - cr = gdk_cairo_create (drawable); cairo_set_line_width (cr, 0.5);