summaryrefslogtreecommitdiff
path: root/gtk/gtkfilesystemmodel.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-10-21 07:44:13 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-10-21 07:44:13 -0400
commitc0e8523a0138d428a2625b6cc3cf6d235ad2371d (patch)
tree49ca6eb212cf4e1392f339479028f977edb5d0fc /gtk/gtkfilesystemmodel.c
parent25cf7023453f18be2100a7aa1afbf16964e5c0d0 (diff)
downloadgtk+-c0e8523a0138d428a2625b6cc3cf6d235ad2371d.tar.gz
filesystemmodel: Fix a compiler warning
Diffstat (limited to 'gtk/gtkfilesystemmodel.c')
-rw-r--r--gtk/gtkfilesystemmodel.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c
index 8674345f88..21e5b6ea2c 100644
--- a/gtk/gtkfilesystemmodel.c
+++ b/gtk/gtkfilesystemmodel.c
@@ -291,10 +291,7 @@ node_set_visible_and_filtered_out (GtkFileSystemModel *model, guint id, gboolean
}
else
{
- guint row;
-
- row = node_get_tree_row (model, id);
- g_assert (row < model->files->len);
+ g_assert (node_get_tree_row (model, id) < model->files->len);
node->visible = FALSE;
node_invalidate_index (model, id);