diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-09-08 21:07:50 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-09-08 21:09:55 +0800 |
commit | 0e2c8c85f81b9638213cdd8a2575807144c7fc24 (patch) | |
tree | a74e330db484123180340a75c733612ecb6de502 /mail/em-utils.c | |
parent | 35d502792c255fc5dba5d0598fcfc648f961d4fe (diff) | |
download | gsoc2013-evolution-0e2c8c85f81b9638213cdd8a2575807144c7fc24.tar.gz gsoc2013-evolution-0e2c8c85f81b9638213cdd8a2575807144c7fc24.tar.zst gsoc2013-evolution-0e2c8c85f81b9638213cdd8a2575807144c7fc24.zip |
Simplify emu_restore_folder_tree_state().
Don't bother passing a GError if we're just going to throw it away.
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r-- | mail/em-utils.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c index fe7c248d0e..f9355f0651 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -2345,14 +2345,10 @@ emu_restore_folder_tree_state (EMFolderTree *folder_tree) filename = g_build_filename (config_dir, "state.ini", NULL); key_file = g_key_file_new (); - g_key_file_load_from_file (key_file, filename, 0, &error); + g_key_file_load_from_file (key_file, filename, 0, NULL); g_free (filename); - if (error) { - g_error_free (error); - } else { - em_folder_tree_restore_state (folder_tree, key_file); - } + em_folder_tree_restore_state (folder_tree, key_file); g_key_file_free (key_file); } |