[gnome-photos] application: Remove redundant mkdir --parents
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] application: Remove redundant mkdir --parents
- Date: Mon, 5 Feb 2018 01:35:42 +0000 (UTC)
commit e7de00404ee1745a53dc0666112fba728d9f3b44
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Feb 3 02:32:51 2018 +0100
application: Remove redundant mkdir --parents
src/photos-application.c | 12 ------------
1 file changed, 12 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 8daef416..6acf9ca1 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -1439,18 +1439,6 @@ photos_application_save_response (GtkDialog *dialog, gint response_id, gpointer
pictures_path = g_get_user_special_dir (G_USER_DIRECTORY_PICTURES);
export_path = g_build_filename (pictures_path, PHOTOS_EXPORT_SUBPATH, NULL);
export_dir = g_file_new_for_path (export_path);
-
- {
- g_autoptr (GError) error = NULL;
-
- if (!photos_glib_make_directory_with_parents (export_dir, NULL, &error))
- {
- g_warning ("Unable to create %s: %s", export_path, error->message);
- photos_export_notification_new_with_error (error);
- goto out;
- }
- }
-
export_dir_name = photos_export_dialog_get_dir_name (PHOTOS_EXPORT_DIALOG (dialog));
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]