[evolution] Simplify emu_restore_folder_tree_state().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Simplify emu_restore_folder_tree_state().
- Date: Wed, 8 Sep 2010 13:10:00 +0000 (UTC)
commit 0e2c8c85f81b9638213cdd8a2575807144c7fc24
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Sep 8 09:07:50 2010 -0400
Simplify emu_restore_folder_tree_state().
Don't bother passing a GError if we're just going to throw it away.
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 fe7c248..f9355f0 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]