[evolution] Remove unused mail_folder_cache_get_folder_has_children().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Remove unused mail_folder_cache_get_folder_has_children().
- Date: Wed, 17 Jul 2013 16:10:00 +0000 (UTC)
commit a877db3749e26774931907160a7b16015ad9ec35
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Jul 15 08:20:39 2013 -0400
Remove unused mail_folder_cache_get_folder_has_children().
libemail-engine/mail-folder-cache.c | 36 -----------------------------------
libemail-engine/mail-folder-cache.h | 4 ---
2 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/libemail-engine/mail-folder-cache.c b/libemail-engine/mail-folder-cache.c
index 2bf0bb4..05360cf 100644
--- a/libemail-engine/mail-folder-cache.c
+++ b/libemail-engine/mail-folder-cache.c
@@ -103,7 +103,6 @@ struct _folder_info {
gchar *full_name; /* full name of folder/folderinfo */
guint32 flags;
- gboolean has_children;
gpointer folder; /* if known (weak pointer) */
};
@@ -558,7 +557,6 @@ setup_folder (MailFolderCache *cache,
mfi->full_name = g_strdup (fi->full_name);
mfi->store_info = si;
mfi->flags = fi->flags;
- mfi->has_children = fi->child != NULL;
g_hash_table_insert (si->folders, mfi->full_name, mfi);
@@ -680,7 +678,6 @@ rename_folders (MailFolderCache *cache,
/* Its a rename op */
mfi->full_name = g_strdup (fi->full_name);
mfi->flags = fi->flags;
- mfi->has_children = fi->child != NULL;
g_hash_table_insert (si->folders, mfi->full_name, mfi);
} else {
@@ -689,7 +686,6 @@ rename_folders (MailFolderCache *cache,
mfi->full_name = g_strdup (fi->full_name);
mfi->store_info = si;
mfi->flags = fi->flags;
- mfi->has_children = fi->child != NULL;
g_hash_table_insert (si->folders, mfi->full_name, mfi);
}
@@ -1726,38 +1722,6 @@ mail_folder_cache_get_folder_info_flags (MailFolderCache *cache,
return fi.fi != NULL;
}
-/* Returns whether folder 'folder' has children based on folder_info->child property.
- * If not found returns FALSE and sets 'found' to FALSE, if not NULL. */
-gboolean
-mail_folder_cache_get_folder_has_children (MailFolderCache *cache,
- CamelFolder *folder,
- gboolean *found)
-{
- struct _find_info fi = { NULL, NULL };
- gchar *folder_uri;
-
- g_return_val_if_fail (MAIL_IS_FOLDER_CACHE (cache), FALSE);
- g_return_val_if_fail (CAMEL_IS_FOLDER (folder), FALSE);
-
- if (cache->priv->stores == NULL)
- return FALSE;
-
- folder_uri = e_mail_folder_uri_from_folder (folder);
- fi.folder_uri = folder_uri;
-
- g_rec_mutex_lock (&cache->priv->stores_mutex);
- g_hash_table_foreach (
- cache->priv->stores, (GHFunc)
- storeinfo_find_folder_info, &fi);
- if (found != NULL)
- *found = fi.fi != NULL;
- g_rec_mutex_unlock (&cache->priv->stores_mutex);
-
- g_free (folder_uri);
-
- return fi.fi != NULL && fi.fi->has_children;
-}
-
void
mail_folder_cache_get_local_folder_uris (MailFolderCache *self,
GQueue *out_queue)
diff --git a/libemail-engine/mail-folder-cache.h b/libemail-engine/mail-folder-cache.h
index cc3fc89..e5c0ebe 100644
--- a/libemail-engine/mail-folder-cache.h
+++ b/libemail-engine/mail-folder-cache.h
@@ -128,10 +128,6 @@ gboolean mail_folder_cache_get_folder_info_flags
(MailFolderCache *cache,
CamelFolder *folder,
CamelFolderInfoFlags *flags);
-gboolean mail_folder_cache_get_folder_has_children
- (MailFolderCache *cache,
- CamelFolder *folder,
- gboolean *found);
void mail_folder_cache_get_local_folder_uris
(MailFolderCache *cache,
GQueue *out_queue);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]