aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shortcuts-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shortcuts-view.c')
-rw-r--r--shell/e-shortcuts-view.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/shell/e-shortcuts-view.c b/shell/e-shortcuts-view.c
index 29c2a7e0c6..a5aee5eb12 100644
--- a/shell/e-shortcuts-view.c
+++ b/shell/e-shortcuts-view.c
@@ -482,7 +482,6 @@ get_shortcut_info (EShortcutsView *shortcuts_view,
{
EShortcutsViewPrivate *priv;
EStorageSet *storage_set;
- EStorage *storage;
EFolder *folder;
const char *path;
@@ -501,18 +500,10 @@ get_shortcut_info (EShortcutsView *shortcuts_view,
if (folder != NULL) {
*unread_count_return = e_folder_get_unread_count (folder);
*type_return = e_folder_get_type_string (folder);
- return;
- }
-
- storage = e_storage_set_get_storage (storage_set, path + 1);
- if (storage != NULL) {
+ } else {
*unread_count_return = 0;
- *type_return = e_storage_get_toplevel_node_type (storage);
- return;
+ *type_return = NULL;
}
-
- *unread_count_return = 0;
- *type_return = NULL;
}
static void