[gtk+/gtk-2-24] Remove superfluous check in node_set_filtered()
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] Remove superfluous check in node_set_filtered()
- Date: Thu, 10 Mar 2016 21:33:05 +0000 (UTC)
commit 400f7ec194344d08ae7a856d94fa805de44ce76b
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Jul 11 14:58:32 2012 -0500
Remove superfluous check in node_set_filtered()
This was a copy-paste leftover from node_set_visible(). Filters are not
concerned with model freezes, so node_set_filtered() does not
need to handle freezes, either.
Signed-off-by: Federico Mena Quintero <federico gnome org>
gtk/gtkfilesystemmodel.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c
index c023aa4..1aa888a 100644
--- a/gtk/gtkfilesystemmodel.c
+++ b/gtk/gtkfilesystemmodel.c
@@ -314,10 +314,6 @@ node_set_filtered (GtkFileSystemModel *model, guint id, gboolean filtered)
{
FileModelNode *node = get_node (model, id);
- if (node->filtered == filtered ||
- node->frozen_add)
- return;
-
node->filtered = filtered;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]