[nautilus] trivial: simplify code



commit ced8311675829cc25ce9f9de930d5062256c910f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Mar 19 04:57:10 2013 -0400

    trivial: simplify code

 libnautilus-private/nautilus-file-utilities.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file-utilities.c b/libnautilus-private/nautilus-file-utilities.c
index 0e44685..2b779a1 100644
--- a/libnautilus-private/nautilus-file-utilities.c
+++ b/libnautilus-private/nautilus-file-utilities.c
@@ -1137,13 +1137,8 @@ nautilus_trashed_files_get_original_directories (GList *files,
                        *unhandled_files = g_list_append (*unhandled_files, nautilus_file_ref (file));
                }
 
-               if (original_file != NULL) {
-                       nautilus_file_unref (original_file);
-               }
-
-               if (original_dir != NULL) {
-                       nautilus_file_unref (original_dir);
-               }
+               nautilus_file_unref (original_file);
+               nautilus_file_unref (original_dir);
        }
 
        return directories;


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