object_tree.c: One gtk_list_item_get_child call is redundant
authorLukáš Tyrychtr <lukastyrychtr@gmail.com>
Fri, 27 Jan 2023 14:43:24 +0000 (15:43 +0100)
committerLukáš Tyrychtr <lukastyrychtr@gmail.com>
Fri, 27 Jan 2023 14:43:33 +0000 (15:43 +0100)
Fixes #5551

gtk/inspector/object-tree.c

index 88e97a9c2c591f7f80db178734ebbd766d970f4d..a7920b9875db6206c636a1a4e818ac708f5058cd 100644 (file)
@@ -1002,7 +1002,6 @@ bind_type_cb (GtkSignalListItemFactory *factory,
   expander = gtk_list_item_get_child (list_item);
   gtk_tree_expander_set_list_row (GTK_TREE_EXPANDER (expander), list_row);
   item = gtk_tree_list_row_get_item (list_row);
-  expander = gtk_list_item_get_child (list_item);
   inscription = gtk_tree_expander_get_child (GTK_TREE_EXPANDER (expander));
 
   gtk_inscription_set_text (GTK_INSCRIPTION (inscription), G_OBJECT_TYPE_NAME (item));