[evolution/webkit] Remove mail_get_folder_quota().



commit f88eebaf65ae9256326ac9751ce0289e3587d13d
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat May 14 14:54:32 2011 -0400

    Remove mail_get_folder_quota().
    
    Use camel_folder_get_quota_info() instead.

 mail/mail-ops.c |   77 -------------------------------------------------------
 mail/mail-ops.h |    6 ----
 2 files changed, 0 insertions(+), 83 deletions(-)
---
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index e57b634..1c8b900 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -1127,83 +1127,6 @@ mail_get_folderinfo (CamelStore *store,
 	return id;
 }
 
-/* ** GET FOLDER'S QUOTA ********************************************************* */
-
-struct _get_quota_msg {
-	MailMsg base;
-
-	CamelFolder *folder;
-	CamelFolderQuotaInfo *quota;
-	void (*done) (CamelFolder *folder, const gchar *folder_uri, CamelFolderQuotaInfo *quota, gpointer data);
-	gchar *folder_uri;
-	gpointer data;
-};
-
-static gchar *
-get_quota_desc (struct _get_quota_msg *m)
-{
-	return g_strdup_printf (
-		_("Retrieving quota information for folder '%s'"),
-		camel_folder_get_display_name (m->folder));
-}
-
-static void
-get_quota_exec (struct _get_quota_msg *m,
-                GCancellable *cancellable,
-                GError **error)
-{
-	m->quota = camel_folder_get_quota_info (m->folder);
-}
-
-static void
-get_quota_done (struct _get_quota_msg *m)
-{
-	if (m->done)
-		m->done (m->folder, m->folder_uri, m->quota, m->data);
-}
-
-static void
-get_quota_free (struct _get_quota_msg *m)
-{
-	if (m->folder)
-		g_object_unref (m->folder);
-	if (m->quota)
-		camel_folder_quota_info_free (m->quota);
-	g_free (m->folder_uri);
-}
-
-static MailMsgInfo get_quota_info = {
-	sizeof (struct _get_quota_msg),
-	(MailMsgDescFunc) get_quota_desc,
-	(MailMsgExecFunc) get_quota_exec,
-	(MailMsgDoneFunc) get_quota_done,
-	(MailMsgFreeFunc) get_quota_free
-};
-
-gint
-mail_get_folder_quota (CamelFolder *folder,
-		 const gchar *folder_uri,
-		 void (*done)(CamelFolder *folder, const gchar *uri, CamelFolderQuotaInfo *quota, gpointer data),
-		 gpointer data, MailMsgDispatchFunc dispatch)
-{
-	struct _get_quota_msg *m;
-	gint id;
-
-	g_return_val_if_fail (folder != NULL, -1);
-
-	m = mail_msg_new (&get_quota_info);
-	m->folder = folder;
-	m->folder_uri = g_strdup (folder_uri);
-	m->data = data;
-	m->done = done;
-
-	g_object_ref (m->folder);
-
-	id = m->base.seq;
-	dispatch (m);
-	return id;
-}
-
 /* ** REMOVE FOLDER ******************************************************* */
 
 struct _remove_folder_msg {
diff --git a/mail/mail-ops.h b/mail/mail-ops.h
index 8478595..89bf23c 100644
--- a/mail/mail-ops.h
+++ b/mail/mail-ops.h
@@ -41,12 +41,6 @@ void		mail_transfer_messages		(EMailSession *session,
 						 void (*done) (gboolean ok, gpointer data),
 						 gpointer data);
 
-/* get quota information for a folder */
-gint mail_get_folder_quota (CamelFolder *folder,
-		 const gchar *folder_uri,
-		 void (*done)(CamelFolder *folder, const gchar *folder_uri, CamelFolderQuotaInfo *quota, gpointer data),
-		 gpointer data, MailMsgDispatchFunc dispatch);
-
 void mail_sync_folder (CamelFolder *folder,
 		       void (*done) (CamelFolder *folder, gpointer data), gpointer data);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]