mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
gtktreeselection: Eliminate a dead assignment
This is technically a dead assignment, but is nice to retain for clarity. Moving it to the variable definition shuts scan-build up. https://bugzilla.gnome.org/show_bug.cgi?id=712760
This commit is contained in:
parent
1adf0becc2
commit
380150361b
@ -480,7 +480,7 @@ gtk_tree_selection_get_selected (GtkTreeSelection *selection,
|
||||
GtkRBTree *tree;
|
||||
GtkRBNode *node;
|
||||
GtkTreePath *anchor_path;
|
||||
gboolean retval;
|
||||
gboolean retval = FALSE;
|
||||
gboolean found_node;
|
||||
|
||||
g_return_val_if_fail (GTK_IS_TREE_SELECTION (selection), FALSE);
|
||||
@ -502,8 +502,6 @@ gtk_tree_selection_get_selected (GtkTreeSelection *selection,
|
||||
if (anchor_path == NULL)
|
||||
return FALSE;
|
||||
|
||||
retval = FALSE;
|
||||
|
||||
found_node = !_gtk_tree_view_find_node (priv->tree_view,
|
||||
anchor_path,
|
||||
&tree,
|
||||
|
Loading…
Reference in New Issue
Block a user