From: Sergio Villar Senin Date: Fri, 6 Mar 2009 17:03:29 +0000 (+0000) Subject: Removed some unused code X-Git-Tag: git_migration_finished~426 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=95e01c8b9da1ac88ed37bc7bc09331dbbff42d52;ds=sidebyside Removed some unused code pmo-trunk-r7827 --- diff --git a/src/modest-init.c b/src/modest-init.c index a0361a4..b2e91e9 100644 --- a/src/modest-init.c +++ b/src/modest-init.c @@ -480,7 +480,7 @@ gboolean modest_init_one_local_folder (gchar *maildir_path) */ gboolean modest_init_local_folders (const gchar* location_filepath) -{ +{ gboolean retval = TRUE; gchar *maildir_path = modest_local_folder_info_get_maildir_path (location_filepath); @@ -495,18 +495,10 @@ modest_init_local_folders (const gchar* location_filepath) NULL); const gboolean created = modest_init_one_local_folder (dir); g_free(dir); - - if (!created) { - retval = FALSE; - } - #if 0 - /* Do this if we only create the top-level dir: */ - if (g_mkdir_with_parents (maildir_path, 0755) < 0) { - g_printerr ("modest: %s: failed to create %s\n", __FUNCTION__, location_filepath); + if (!created) { retval = FALSE; } - #endif } else { /* Create each of the standard on-disk folders. @@ -515,16 +507,16 @@ modest_init_local_folders (const gchar* location_filepath) for (i = 0; i != G_N_ELEMENTS(LOCAL_FOLDERS); ++i) { gchar *dir = g_build_filename (maildir_path, modest_local_folder_info_get_type_name(LOCAL_FOLDERS[i]), - NULL); + NULL); const gboolean created = modest_init_one_local_folder (dir); g_free(dir); - + if (!created) { retval = FALSE; } } } - + g_free (maildir_path); return retval; }