[nautilus] desktop-canvas-view: remove unneeded check



commit bdb248f669853e68c7defc47c82caf5a6af2e1a3
Author: Carlos Soriano <csoriano gnome org>
Date:   Tue Apr 12 13:19:51 2016 +0200

    desktop-canvas-view: remove unneeded check
    
    There is no way the desktop view will hold a directory that is not
    a desktop directory.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=712620

 src/nautilus-desktop-canvas-view.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/nautilus-desktop-canvas-view.c b/src/nautilus-desktop-canvas-view.c
index d86d01d..eae2963 100644
--- a/src/nautilus-desktop-canvas-view.c
+++ b/src/nautilus-desktop-canvas-view.c
@@ -624,13 +624,7 @@ real_get_backing_uri (NautilusFilesView *view)
                 return NULL;
         }
 
-        directory = model;
-
-        if (NAUTILUS_IS_DESKTOP_DIRECTORY (directory)) {
-                directory = nautilus_desktop_directory_get_real_directory (NAUTILUS_DESKTOP_DIRECTORY 
(directory));
-        } else {
-                nautilus_directory_ref (directory);
-        }
+        directory = nautilus_desktop_directory_get_real_directory (NAUTILUS_DESKTOP_DIRECTORY (model));
 
         uri = nautilus_directory_get_uri (directory);
 


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