[gnome-photos/wip/rishi/collection: 51/54] application: Remove redundant mkdir --parents
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/collection: 51/54] application: Remove redundant mkdir --parents
- Date: Sun, 4 Feb 2018 14:05:32 +0000 (UTC)
commit effa303669200319bcccbf73b94998e7180888f2
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 0889919c..7030fd18 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -1493,18 +1493,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]