summaryrefslogtreecommitdiff
path: root/gtk/gtktreeview.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-08-04 01:04:10 +0200
committerMatthias Clasen <mclasen@redhat.com>2013-08-04 01:27:39 +0200
commiteece18d21d434177ba66d6ff662a0b179a8819c8 (patch)
tree5b790db2ce395f577cf2993b85d196d67156afec /gtk/gtktreeview.c
parent0d999c626f44deaf7d259854aaec1bdc26294685 (diff)
downloadgtk+-eece18d21d434177ba66d6ff662a0b179a8819c8.tar.gz
GtkTreeView: Remove a dead assignment
This was found by the clang static analyzer.
Diffstat (limited to 'gtk/gtktreeview.c')
-rw-r--r--gtk/gtktreeview.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index e857094e00..b9c2bb5b8b 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -15228,9 +15228,7 @@ gtk_tree_view_search_move (GtkWidget *window,
len = strlen (text);
if (up && tree_view->priv->selected_iter == 1)
- return strlen (text) < 1;
-
- len = strlen (text);
+ return len < 1;
if (len < 1)
return TRUE;