Removed internal_allocation member which was assigned but never used
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 28 Nov 2008 00:47:10 +0000 (09:47 +0900)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 28 Nov 2008 00:47:10 +0000 (09:47 +0900)
lib/gtksheet/gtksheet.c
lib/gtksheet/gtksheet.h

index e3a145f66b3f8998b341dedd3c0e6a4346f4e812..ab64fe248d0602143109d1862503501e65543574 100644 (file)
@@ -4347,14 +4347,6 @@ gtk_sheet_size_allocate (GtkWidget *widget,
                            allocation->width - 2 * border_width,
                            allocation->height - 2 * border_width);
 
-  /* use internal allocation structure for all the math
-   * because it's easier than always subtracting the container
-   * border width */
-  sheet->internal_allocation.x = 0;
-  sheet->internal_allocation.y = 0;
-  sheet->internal_allocation.width = allocation->width - 2 * border_width;
-  sheet->internal_allocation.height = allocation->height - 2 * border_width;
-
   sheet_allocation.x = 0;
   sheet_allocation.y = 0;
   sheet_allocation.width = allocation->width - 2 * border_width;
index bdb7ea32efeaabd8bc60a96eec0be5d89a18463f..3d1e07dff59e26dd63854dd14e0b10e8edf3c56f 100644 (file)
@@ -102,10 +102,6 @@ struct _GtkSheet
   GdkColor color[n_COLORS];
   gboolean show_grid;
 
-  /* allocation rectangle after the container_border_width
-     and the width of the shadow border */
-  GdkRectangle internal_allocation;
-
   gint16 column_requisition;
   gint16 row_requisition;