Remove commented code
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 28 Jul 2009 11:02:06 +0000 (13:02 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 28 Jul 2009 11:02:06 +0000 (13:02 +0200)
lib/gtk-contrib/psppire-sheet.c

index 6703f0b67e0806e101d3a751b2c2f1bfd758f8ab..6d1c0af9755cdeeeaee47dada8587dbffc81907f 100644 (file)
@@ -2777,30 +2777,15 @@ psppire_sheet_expose (GtkWidget *widget, GdkEventExpose *event)
 
       if (sheet->select_status != PSPPIRE_SHEET_NORMAL)
        {
-#if 0
-         if (psppire_sheet_range_isvisible (sheet, &sheet->range))
-           psppire_sheet_range_draw (sheet, &sheet->range);
-
-         if (PSPPIRE_SHEET_IN_RESIZE (sheet) || PSPPIRE_SHEET_IN_DRAG (sheet))
-           psppire_sheet_range_draw (sheet, &sheet->drag_range);
-#endif
-
-           {
-             GdkRectangle area;
+         GdkRectangle area;
 
-             rectangle_from_range (sheet, &sheet->range, &area);
+         rectangle_from_range (sheet, &sheet->range, &area);
              
-             gdk_draw_rectangle (sheet->sheet_window,
-                                 sheet->xor_gc,
-                                 TRUE,
-                                 area.x + 1, area.y + 1,
-                                 area.width, area.height);
-           }
-
-#if 0
-         if (PSPPIRE_SHEET_IN_RESIZE (sheet) || PSPPIRE_SHEET_IN_DRAG (sheet))
-           draw_xor_rectangle (sheet, sheet->drag_range);
-#endif
+         gdk_draw_rectangle (sheet->sheet_window,
+                             sheet->xor_gc,
+                             TRUE,
+                             area.x + 1, area.y + 1,
+                             area.width, area.height);
        }