summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2020-04-19 12:19:16 +0100
committerAntónio Fernandes <antoniof@gnome.org>2020-04-19 13:16:34 +0100
commit02753eacfc0c8de00e8530f050d253ed4e6d1aec (patch)
tree0aee08d36f8fcfd0d4bba9787ecc64fcde1c7945
parent840b089903787b36b0004be251247282ca28eac3 (diff)
downloadnautilus-wip/antoniof/deep-size-hidden-files.tar.gz
directory-async: Drop unused parameterwip/antoniof/deep-size-hidden-files
This unused since commit ace6d2c2170028148785f3fa87eedf883f20f1dd
-rw-r--r--src/nautilus-directory-async.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/nautilus-directory-async.c b/src/nautilus-directory-async.c
index e9fe732e3..a06443c7a 100644
--- a/src/nautilus-directory-async.c
+++ b/src/nautilus-directory-async.c
@@ -904,8 +904,7 @@ show_hidden_files_changed_callback (gpointer callback_data)
}
static gboolean
-should_skip_file (NautilusDirectory *directory,
- GFileInfo *info)
+should_skip_file (GFileInfo *info)
{
static gboolean show_hidden_files_changed_callback_installed = FALSE;
@@ -983,8 +982,7 @@ dequeue_pending_idle_callback (gpointer callback_data)
* moving this into the actual callback instead of
* waiting for the idle function.
*/
- if (dir_load_state &&
- !should_skip_file (directory, file_info))
+ if (dir_load_state && !should_skip_file (file_info))
{
dir_load_state->load_file_count += 1;
@@ -2535,7 +2533,7 @@ count_non_skipped_files (GList *list)
for (node = list; node != NULL; node = node->next)
{
info = node->data;
- if (!should_skip_file (NULL, info))
+ if (!should_skip_file (info))
{
count += 1;
}
@@ -2819,7 +2817,7 @@ deep_count_one (DeepCountState *state,
mark_inode_as_seen (state, info);
}
/* Count item only if not skipped (because it's not user-visible) */
- skip_count = should_skip_file (NULL, info) || state->deep_size_only;
+ skip_count = should_skip_file (info) || state->deep_size_only;
file = state->directory->details->deep_count_file;
@@ -3257,7 +3255,7 @@ mime_list_one (MimeListState *state,
{
const char *mime_type;
- if (should_skip_file (NULL, info))
+ if (should_skip_file (info))
{
g_object_unref (info);
return;