From 011747a5f75840e440ddb06a08ea5957e74e8cab Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 13 Dec 2012 16:52:01 -0500 Subject: e_mail_migrate(): Remove directory creation code. e_shell_backend_get_data_dir() already creates the user's data directory for mail, so there's no need to try and create the directory again. This eliminates the only usage of the E_SHELL_MIGRATE_ERROR domain. --- mail/e-mail-migrate.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'mail') diff --git a/mail/e-mail-migrate.c b/mail/e-mail-migrate.c index 24335c9594..30683f4aeb 100644 --- a/mail/e-mail-migrate.c +++ b/mail/e-mail-migrate.c @@ -315,18 +315,7 @@ e_mail_migrate (EShellBackend *shell_backend, struct stat st; const gchar *data_dir; - /* make sure ~/.evolution/mail exists */ data_dir = e_shell_backend_get_data_dir (shell_backend); - if (g_stat (data_dir, &st) == -1) { - if (errno != ENOENT || g_mkdir_with_parents (data_dir, 0700) == -1) { - g_set_error ( - error, E_SHELL_MIGRATE_ERROR, - E_SHELL_MIGRATE_ERROR_FAILED, - _("Unable to create local mail folders at " - "'%s': %s"), data_dir, g_strerror (errno)); - return FALSE; - } - } if (major == 0) return emm_setup_initial (data_dir); -- cgit v1.2.3