[nautilus] files-view: simplify nautilus_files_view_set_search_query
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] files-view: simplify nautilus_files_view_set_search_query
- Date: Wed, 16 Dec 2015 16:58:27 +0000 (UTC)
commit 8d6844ac851ee9b5c4be7ef38961119334219be1
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Dec 16 14:56:45 2015 -0200
files-view: simplify nautilus_files_view_set_search_query
It was allocating some variables that weren't used anywhere
in the code. Cleanup those variables and make the code less
cluttered.
src/nautilus-files-view.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 055800e..e4371fe 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -7757,14 +7757,10 @@ nautilus_files_view_set_search_query (NautilusView *view,
nautilus_view_set_location (view, location);
} else {
NautilusDirectory *directory;
- NautilusFile *file;
- gchar *path;
gchar *uri;
uri = nautilus_search_directory_generate_new_uri ();
location = g_file_new_for_uri (uri);
- file = nautilus_file_get (location);
- path = g_file_get_uri (location);
directory = nautilus_directory_get (location);
g_assert (NAUTILUS_IS_SEARCH_DIRECTORY (directory));
@@ -7777,9 +7773,7 @@ nautilus_files_view_set_search_query (NautilusView *view,
g_object_notify (G_OBJECT (view), "is-searching");
nautilus_directory_unref (directory);
- nautilus_file_unref (file);
g_free (uri);
- g_free (path);
}
} else {
if (nautilus_view_is_searching (view)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]