Fix warnings.
authorCarl Hetherington <carl@carlh.net>
Mon, 14 Nov 2011 11:31:05 +0000 (11:31 +0000)
committerCarl Hetherington <carl@carlh.net>
Mon, 14 Nov 2011 11:31:05 +0000 (11:31 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10574 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/canvas-simplerect.c

index e7cb522e82116928b9b57d681a56ba8a591e2a90..fe6e1855be03848cd092b7699c31b3032a8a3f52 100644 (file)
@@ -232,13 +232,9 @@ gnome_canvas_simplerect_init (GnomeCanvasSimpleRect *simplerect)
 static void
 gnome_canvas_simplerect_destroy (GtkObject *object)
 {
-       GnomeCanvasSimpleRect *rect;
-
        g_return_if_fail (object != NULL);
        g_return_if_fail (GNOME_IS_CANVAS_SIMPLERECT (object));
 
-       rect = GNOME_CANVAS_SIMPLERECT (object);
-
        /* remember, destroy can be run multiple times! */
 
        if (GTK_OBJECT_CLASS (parent_class)->destroy)
@@ -847,12 +843,9 @@ gnome_canvas_simplerect_point (GnomeCanvasItem *item, double x, double y, int cx
        (void) cx;
        (void) cy;
 
-       GnomeCanvasSimpleRect *simplerect;
        double x1, y1, x2, y2;
        double dx, dy;
 
-       simplerect = GNOME_CANVAS_SIMPLERECT (item);
-
        *actual_item = item;
 
        /* Find the bounds for the rectangle plus its outline width */