aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-15 02:54:32 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:15 +0800
commit4131148aa2501cf4f4a3c37be444a3fbc85bad86 (patch)
tree3a950201a71a0184904fe748c808911cf7f735d2 /mail
parent8c11fc5aac29413638286734b35705ef095dfcc8 (diff)
downloadgsoc2013-evolution-4131148aa2501cf4f4a3c37be444a3fbc85bad86.tar
gsoc2013-evolution-4131148aa2501cf4f4a3c37be444a3fbc85bad86.tar.gz
gsoc2013-evolution-4131148aa2501cf4f4a3c37be444a3fbc85bad86.tar.bz2
gsoc2013-evolution-4131148aa2501cf4f4a3c37be444a3fbc85bad86.tar.lz
gsoc2013-evolution-4131148aa2501cf4f4a3c37be444a3fbc85bad86.tar.xz
gsoc2013-evolution-4131148aa2501cf4f4a3c37be444a3fbc85bad86.tar.zst
gsoc2013-evolution-4131148aa2501cf4f4a3c37be444a3fbc85bad86.zip
Remove mail_get_folder_quota().
Use camel_folder_get_quota_info() instead.
Diffstat (limited to 'mail')
-rw-r--r--mail/mail-ops.c77
-rw-r--r--mail/mail-ops.h6
2 files changed, 0 insertions, 83 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index e57b63445e..1c8b900a87 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 8478595b17..89bf23cf04 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);