From cbf294b27ec64a9c10b871888fcd6c5d694979d2 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 11 Jun 2013 15:22:09 +0200 Subject: [PATCH] GtkListBox: Remove some unnecessary code the unhighlight call already NULLs out drag_highlighted_row --- gtk/gtklistbox.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c index 958c7560ec..20e8d98c10 100644 --- a/gtk/gtklistbox.c +++ b/gtk/gtklistbox.c @@ -1871,7 +1871,6 @@ void gtk_list_box_drag_highlight_row (GtkListBox *list_box, GtkListBoxRow *row) { GtkListBoxPrivate *priv = list_box->priv; - GtkListBoxRow *old_highlight; g_return_if_fail (list_box != NULL); g_return_if_fail (row != NULL); @@ -1881,11 +1880,7 @@ gtk_list_box_drag_highlight_row (GtkListBox *list_box, GtkListBoxRow *row) gtk_list_box_drag_unhighlight_row (list_box); gtk_drag_highlight (GTK_WIDGET (row)); - - old_highlight = priv->drag_highlighted_row; priv->drag_highlighted_row = g_object_ref (row); - if (old_highlight) - g_object_unref (old_highlight); } static void