mail_folder_cache_note_store: CamelSession arg is unnecessary.

The CamelStore argument already has the CamelSession:

    session = camel_service_get_session (CAMEL_SERVICE (store));
This commit is contained in:
Matthew Barnes
2011-12-07 22:27:16 -05:00
parent dcc3d40b2c
commit 6097897638
4 changed files with 5 additions and 6 deletions

View File

@ -204,7 +204,7 @@ mail_store_add (EMailSession *session,
em_folder_tree_model_add_store (default_model, store);
mail_folder_cache_note_store (
folder_cache, CAMEL_SESSION (session), store, NULL,
folder_cache, store, NULL,
mail_store_note_store_cb, store_info_ref (store_info));
}

View File

@ -1106,12 +1106,12 @@ mail_folder_cache_new (void)
*/
void
mail_folder_cache_note_store (MailFolderCache *cache,
CamelSession *session,
CamelStore *store,
GCancellable *cancellable,
NoteDoneFunc done,
gpointer data)
{
CamelSession *session;
struct _store_info *si;
struct _update_data *ud;
gint hook = 0;
@ -1119,6 +1119,8 @@ mail_folder_cache_note_store (MailFolderCache *cache,
g_return_if_fail (CAMEL_IS_STORE (store));
g_return_if_fail (mail_in_main_thread ());
session = camel_service_get_session (CAMEL_SERVICE (store));
g_mutex_lock (cache->priv->stores_mutex);
si = g_hash_table_lookup (cache->priv->stores, store);

View File

@ -109,7 +109,6 @@ GType mail_folder_cache_get_type (void) G_GNUC_CONST;
MailFolderCache *
mail_folder_cache_new (void);
void mail_folder_cache_note_store (MailFolderCache *self,
CamelSession *session,
CamelStore *store,
GCancellable *cancellable,
NoteDoneFunc done,

View File

@ -1089,9 +1089,7 @@ receive_update_got_store (CamelStore *store,
if (store) {
mail_folder_cache_note_store (
folder_cache,
CAMEL_SESSION (session),
store, info->cancellable,
folder_cache, store, info->cancellable,
receive_update_got_folderinfo, info);
} else {
receive_done (info);