diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-15 20:20:39 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-18 00:08:46 +0800 |
commit | a877db3749e26774931907160a7b16015ad9ec35 (patch) | |
tree | 17106c5695ee58fa624c5f43a4631d8d3d5ae205 | |
parent | 09e7cfcd0d578ea88b31ce39d50f27ad76974ba2 (diff) | |
download | gsoc2013-evolution-a877db3749e26774931907160a7b16015ad9ec35.tar gsoc2013-evolution-a877db3749e26774931907160a7b16015ad9ec35.tar.gz gsoc2013-evolution-a877db3749e26774931907160a7b16015ad9ec35.tar.bz2 gsoc2013-evolution-a877db3749e26774931907160a7b16015ad9ec35.tar.lz gsoc2013-evolution-a877db3749e26774931907160a7b16015ad9ec35.tar.xz gsoc2013-evolution-a877db3749e26774931907160a7b16015ad9ec35.tar.zst gsoc2013-evolution-a877db3749e26774931907160a7b16015ad9ec35.zip |
Remove unused mail_folder_cache_get_folder_has_children().
-rw-r--r-- | libemail-engine/mail-folder-cache.c | 36 | ||||
-rw-r--r-- | 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 2bf0bb470c..05360cfc3c 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 cc3fc898bc..e5c0ebecc5 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); |