[nautilus/wip/antoniof/deep-size-hidden-files] directory-async: Drop unused parameter



commit 02753eacfc0c8de00e8530f050d253ed4e6d1aec
Author: António Fernandes <antoniof gnome org>
Date:   Sun Apr 19 12:19:16 2020 +0100

    directory-async: Drop unused parameter
    
    This unused since commit ace6d2c2170028148785f3fa87eedf883f20f1dd

 src/nautilus-directory-async.c | 12 +++++-------
 1 file 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]