projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0b31f19
)
Removed some unused code
author
Sergio Villar Senin
<svillar@igalia.com>
Fri, 6 Mar 2009 17:03:29 +0000
(17:03 +0000)
committer
Sergio Villar Senin
<svillar@igalia.com>
Fri, 6 Mar 2009 17:03:29 +0000
(17:03 +0000)
pmo-trunk-r7827
src/modest-init.c
patch
|
blob
|
history
diff --git
a/src/modest-init.c
b/src/modest-init.c
index
a0361a4
..
b2e91e9
100644
(file)
--- 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
modest_init_local_folders (const gchar* location_filepath)
-{
+{
gboolean retval = TRUE;
gchar *maildir_path = modest_local_folder_info_get_maildir_path (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);
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;
}
retval = FALSE;
}
- #endif
}
else {
/* Create each of the standard on-disk folders.
}
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]),
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);
const gboolean created = modest_init_one_local_folder (dir);
g_free(dir);
-
+
if (!created) {
retval = FALSE;
}
}
}
if (!created) {
retval = FALSE;
}
}
}
-
+
g_free (maildir_path);
return retval;
}
g_free (maildir_path);
return retval;
}