[gtk+] treeview: Remove unused variables
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] treeview: Remove unused variables
- Date: Fri, 27 May 2011 14:19:56 +0000 (UTC)
commit c5af8c7e3a67db1088f2723438f34d154eb50afa
Author: Benjamin Otte <otte redhat com>
Date: Fri May 27 04:23:29 2011 +0200
treeview: Remove unused variables
... and all the code doing complex computations to assign values to
them.
gtk/gtktreeview.c | 14 +-------------
1 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 232e8d5..912b0fb 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -2578,10 +2578,9 @@ gtk_tree_view_size_allocate_columns (GtkWidget *widget,
list != (rtl ? first_column->prev : last_column->next);
list = (rtl ? list->prev : list->next))
{
- gint old_width, column_width;
+ gint column_width;
column = list->data;
- old_width = gtk_tree_view_column_get_width (column);
if (!gtk_tree_view_column_get_visible (column))
continue;
@@ -2766,8 +2765,6 @@ gtk_tree_view_size_allocate (GtkWidget *widget,
if (gtk_widget_get_realized (widget))
{
- gboolean has_expand_column = FALSE;
-
gdk_window_move_resize (gtk_widget_get_window (widget),
allocation->x, allocation->y,
allocation->width, allocation->height);
@@ -2785,15 +2782,6 @@ gtk_tree_view_size_allocate (GtkWidget *widget,
if (tree_view->priv->tree == NULL)
invalidate_empty_focus (tree_view);
- for (tmp_list = tree_view->priv->columns; tmp_list; tmp_list = tmp_list->next)
- {
- if (gtk_tree_view_column_get_expand (GTK_TREE_VIEW_COLUMN (tmp_list->data)))
- {
- has_expand_column = TRUE;
- break;
- }
- }
-
if (width_changed && tree_view->priv->expander_column)
{
/* Might seem awkward, but is the best heuristic I could come up
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]