[nautilus/gnome-3-22] file-operations: remove not needed g_warn_if_fail
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-22] file-operations: remove not needed g_warn_if_fail
- Date: Fri, 9 Dec 2016 23:41:20 +0000 (UTC)
commit 7719c7f2c74a6c8c6382f489b56c4ff575f2ed04
Author: Carlos Soriano <csoriano gnome org>
Date: Sat Dec 10 00:18:03 2016 +0100
file-operations: remove not needed g_warn_if_fail
g_file_get_uri needs to return non-null.
src/nautilus-file-operations.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-file-operations.c b/src/nautilus-file-operations.c
index 7eee1cc..6b5a9a1 100644
--- a/src/nautilus-file-operations.c
+++ b/src/nautilus-file-operations.c
@@ -3177,7 +3177,6 @@ retry:
file = g_file_enumerator_get_child (enumerator, info);
file_uri = g_file_get_uri (file);
- g_warn_if_fail (file_uri != NULL);
if (!g_hash_table_contains (scanned, file_uri))
{
@@ -3339,7 +3338,6 @@ retry:
g_autofree char *file_uri = NULL;
file_uri = g_file_get_uri (file);
- g_warn_if_fail (file_uri != NULL);
if (!g_hash_table_contains (scanned, file_uri))
{
g_hash_table_add (scanned, g_strdup (file_uri));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]