aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-11-28 23:53:16 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-11-30 04:15:57 +0800
commit7c407a88e26baa741832cd60772e1e78c8ac055f (patch)
tree27576d57a79df0c1442bc272b7a55ee6f1c6d6c2 /libemail-engine
parente607ae83d43972943b138915fb86b244498e8845 (diff)
downloadgsoc2013-evolution-7c407a88e26baa741832cd60772e1e78c8ac055f.tar
gsoc2013-evolution-7c407a88e26baa741832cd60772e1e78c8ac055f.tar.gz
gsoc2013-evolution-7c407a88e26baa741832cd60772e1e78c8ac055f.tar.bz2
gsoc2013-evolution-7c407a88e26baa741832cd60772e1e78c8ac055f.tar.lz
gsoc2013-evolution-7c407a88e26baa741832cd60772e1e78c8ac055f.tar.xz
gsoc2013-evolution-7c407a88e26baa741832cd60772e1e78c8ac055f.tar.zst
gsoc2013-evolution-7c407a88e26baa741832cd60772e1e78c8ac055f.zip
Remove unused arguments in mail_fetch_mail().
The 'fetch_type' and 'fetch_count' arguments are not used.
Diffstat (limited to 'libemail-engine')
-rw-r--r--libemail-engine/mail-ops.c23
-rw-r--r--libemail-engine/mail-ops.h4
2 files changed, 4 insertions, 23 deletions
diff --git a/libemail-engine/mail-ops.c b/libemail-engine/mail-ops.c
index ad6e1c1328..df90596e53 100644
--- a/libemail-engine/mail-ops.c
+++ b/libemail-engine/mail-ops.c
@@ -76,15 +76,12 @@ struct _fetch_mail_msg {
GCancellable *cancellable; /* we have our own cancellation
* struct, the other should be empty */
gint keep; /* keep on server? */
- gint fetch_count;
- CamelFetchType fetch_type;
- gint still_more;
MailProviderFetchLockFunc provider_lock;
MailProviderFetchUnlockFunc provider_unlock;
MailProviderFetchInboxFunc provider_fetch_inbox;
- void (*done)(gint still_more, gpointer data);
+ void (*done)(gpointer data);
gpointer data;
};
@@ -326,13 +323,6 @@ fetch_mail_exec (struct _fetch_mail_msg *m,
parent_store = camel_folder_get_parent_store (folder);
- if (m->fetch_count > 0) {
- /* We probably should fetch some old messages first. */
- m->still_more = camel_folder_fetch_messages_sync (
- folder, m->fetch_type,
- m->fetch_count, cancellable, error) ? 1 : 0;
- }
-
service = CAMEL_SERVICE (parent_store);
data_dir = camel_service_get_user_data_dir (service);
@@ -472,7 +462,7 @@ static void
fetch_mail_done (struct _fetch_mail_msg *m)
{
if (m->done)
- m->done (m->still_more, m->data);
+ m->done (m->data);
}
static void
@@ -498,8 +488,6 @@ static MailMsgInfo fetch_mail_info = {
/* ouch, a 'do everything' interface ... */
void
mail_fetch_mail (CamelStore *store,
- CamelFetchType fetch_type,
- gint fetch_count,
const gchar *type,
MailProviderFetchLockFunc lock_func,
MailProviderFetchUnlockFunc unlock_func,
@@ -509,8 +497,7 @@ mail_fetch_mail (CamelStore *store,
gpointer get_data,
CamelFilterStatusFunc *status,
gpointer status_data,
- void (*done)(gint still_more,
- gpointer data),
+ void (*done)(gpointer data),
gpointer data)
{
struct _fetch_mail_msg *m;
@@ -531,10 +518,6 @@ mail_fetch_mail (CamelStore *store,
m->done = done;
m->data = data;
- m->fetch_count = fetch_count;
- m->fetch_type = fetch_type;
- m->still_more = -1;
-
m->provider_lock = lock_func;
m->provider_unlock = unlock_func;
m->provider_fetch_inbox = fetch_inbox_func;
diff --git a/libemail-engine/mail-ops.h b/libemail-engine/mail-ops.h
index ec9ab739ab..7841b09073 100644
--- a/libemail-engine/mail-ops.h
+++ b/libemail-engine/mail-ops.h
@@ -79,8 +79,6 @@ typedef CamelFolder *
GError **error);
void mail_fetch_mail (CamelStore *store,
- CamelFetchType fetch_type,
- gint fetch_count,
const gchar *type,
MailProviderFetchLockFunc lock_func,
MailProviderFetchUnlockFunc unlock_func,
@@ -90,7 +88,7 @@ void mail_fetch_mail (CamelStore *store,
gpointer get_data,
CamelFilterStatusFunc *status,
gpointer status_data,
- void (*done)(gint still_more, gpointer data),
+ void (*done)(gpointer data),
gpointer data);
void mail_filter_folder (EMailSession *session,