From c0e8523a0138d428a2625b6cc3cf6d235ad2371d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 21 Oct 2022 07:44:13 -0400 Subject: [PATCH] filesystemmodel: Fix a compiler warning --- gtk/gtkfilesystemmodel.c | 5 +---- 1 file changed, 1 insertion(+), 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);