From 0e2c8c85f81b9638213cdd8a2575807144c7fc24 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 8 Sep 2010 09:07:50 -0400 Subject: 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 file 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); } -- cgit v1.2.3