[evolution-data-server] CamelPOP3Settings: Remove unused "batch-fetch-count" property.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] CamelPOP3Settings: Remove unused "batch-fetch-count" property.
- Date: Fri, 29 Nov 2013 20:16:34 +0000 (UTC)
commit 36bdca2ab78994eafc494c3a8144153604b251ed
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Nov 28 12:08:01 2013 -0500
CamelPOP3Settings: Remove unused "batch-fetch-count" property.
Was tied to "mobile mode", no longer used.
camel/providers/pop3/camel-pop3-settings.c | 73 +---------------------------
camel/providers/pop3/camel-pop3-settings.h | 5 --
docs/reference/camel/camel-sections.txt | 2 -
3 files changed, 1 insertions(+), 79 deletions(-)
---
diff --git a/camel/providers/pop3/camel-pop3-settings.c b/camel/providers/pop3/camel-pop3-settings.c
index a966326..707e052 100644
--- a/camel/providers/pop3/camel-pop3-settings.c
+++ b/camel/providers/pop3/camel-pop3-settings.c
@@ -28,7 +28,6 @@ struct _CamelPOP3SettingsPrivate {
gboolean disable_extensions;
gboolean keep_on_server;
gboolean auto_fetch;
- gint batch_fetch_count;
};
enum {
@@ -42,8 +41,7 @@ enum {
PROP_PORT,
PROP_SECURITY_METHOD,
PROP_USER,
- PROP_AUTO_FETCH,
- PROP_BATCH_FETCH_COUNT
+ PROP_AUTO_FETCH
};
G_DEFINE_TYPE_WITH_CODE (
@@ -119,12 +117,6 @@ pop3_settings_set_property (GObject *object,
CAMEL_POP3_SETTINGS (object),
g_value_get_boolean (value));
return;
-
- case PROP_BATCH_FETCH_COUNT:
- camel_pop3_settings_set_batch_fetch_count (
- CAMEL_POP3_SETTINGS (object),
- g_value_get_int (value));
- return;
}
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
@@ -206,14 +198,6 @@ pop3_settings_get_property (GObject *object,
camel_pop3_settings_get_auto_fetch (
CAMEL_POP3_SETTINGS (object)));
return;
-
- case PROP_BATCH_FETCH_COUNT:
- g_value_set_int (
- value,
- camel_pop3_settings_get_batch_fetch_count (
- CAMEL_POP3_SETTINGS (object)));
- return;
-
}
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
@@ -306,20 +290,6 @@ camel_pop3_settings_class_init (CamelPOP3SettingsClass *class)
G_PARAM_CONSTRUCT |
G_PARAM_STATIC_STRINGS));
- g_object_class_install_property (
- object_class,
- PROP_BATCH_FETCH_COUNT,
- g_param_spec_int (
- "batch-fetch-count",
- "Batch fetch count",
- "Number of messages to download in a batch.",
- -1,
- G_MAXINT,
- -1,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT |
- G_PARAM_STATIC_STRINGS));
-
/* Inherited from CamelNetworkSettings. */
g_object_class_override_property (
object_class,
@@ -572,44 +542,3 @@ camel_pop3_settings_set_auto_fetch (CamelPOP3Settings *settings,
g_object_notify (G_OBJECT (settings), "auto-fetch");
}
-/**
- * camel_pop3_settings_get_batch_fetch_count:
- * @settings: a #CamelPOP3Settings
- *
- * Returns the batch fetch count while fetching mails.
- *
- * Returns: the batch fetch count.
- *
- * Since: 3.4
- **/
-gint
-camel_pop3_settings_get_batch_fetch_count (CamelPOP3Settings *settings)
-{
- g_return_val_if_fail (CAMEL_IS_POP3_SETTINGS (settings), FALSE);
-
- return settings->priv->batch_fetch_count;
-}
-
-/**
- * camel_pop3_settings_set_batch_fetch_count:
- * @settings: a #CamelPOP3Settings
- * @batch_fetch_count: number of mails to download in a batch.
- *
- * Sets the number of mails to download in a batch.
- *
- * Since: 3.4
- **/
-void
-camel_pop3_settings_set_batch_fetch_count (CamelPOP3Settings *settings,
- gboolean batch_fetch_count)
-{
- g_return_if_fail (CAMEL_IS_POP3_SETTINGS (settings));
-
- if (settings->priv->batch_fetch_count == batch_fetch_count)
- return;
-
- settings->priv->batch_fetch_count = batch_fetch_count;
-
- g_object_notify (G_OBJECT (settings), "batch-fetch-count");
-}
-
diff --git a/camel/providers/pop3/camel-pop3-settings.h b/camel/providers/pop3/camel-pop3-settings.h
index 941946b..7ed25e9 100644
--- a/camel/providers/pop3/camel-pop3-settings.h
+++ b/camel/providers/pop3/camel-pop3-settings.h
@@ -81,11 +81,6 @@ gboolean camel_pop3_settings_get_auto_fetch
void camel_pop3_settings_set_auto_fetch
(CamelPOP3Settings *settings,
gboolean auto_fetch);
-gboolean camel_pop3_settings_get_batch_fetch_count
- (CamelPOP3Settings *settings);
-void camel_pop3_settings_set_batch_fetch_count
- (CamelPOP3Settings *settings,
- gint batch_fetch_count);
G_END_DECLS
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index 2fe0f8c..535d9a6 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -3957,8 +3957,6 @@ camel_pop3_settings_get_keep_on_server
camel_pop3_settings_set_keep_on_server
camel_pop3_settings_get_auto_fetch
camel_pop3_settings_set_auto_fetch
-camel_pop3_settings_get_batch_fetch_count
-camel_pop3_settings_set_batch_fetch_count
<SUBSECTION Standard>
CAMEL_POP3_SETTINGS
CAMEL_IS_POP3_SETTINGS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]