[dia] [scan-build] Dead assignment



commit 8f10bca38bd84ec2ced28526558f81f0ed73895f
Author: Hans Breuer <hans breuer org>
Date:   Tue Dec 29 13:11:33 2009 +0100

    [scan-build] Dead assignment
    
    remove unused extent calculation

 lib/dialinechooser.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/lib/dialinechooser.c b/lib/dialinechooser.c
index 6213c78..84c624e 100644
--- a/lib/dialinechooser.c
+++ b/lib/dialinechooser.c
@@ -110,7 +110,6 @@ dia_line_preview_expose(GtkWidget *widget, GdkEventExpose *event)
   GtkMisc *misc = GTK_MISC(widget);
   gint width, height;
   gint x, y;
-  gint extent;
   GdkWindow *win;
   GdkGC *gc;
   GdkGCValues gcvalues;
@@ -120,7 +119,6 @@ dia_line_preview_expose(GtkWidget *widget, GdkEventExpose *event)
   if (GTK_WIDGET_DRAWABLE(widget)) {
     width = widget->allocation.width - misc->xpad * 2;
     height = widget->allocation.height - misc->ypad * 2;
-    extent = MIN(width, height);
     x = (widget->allocation.x + misc->xpad);
     y = (widget->allocation.y + misc->ypad);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]