[evolution-data-server] CamelIMAPXSettings: Remove "concurrent-connections" property.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] CamelIMAPXSettings: Remove "concurrent-connections" property.
- Date: Fri, 12 Jul 2013 11:47:55 +0000 (UTC)
commit dcd76c76db2e88788dc7d0e3b41cc42619b8e71c
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Jul 11 20:57:07 2013 -0400
CamelIMAPXSettings: Remove "concurrent-connections" property.
No longer used.
camel/camel-imapx-settings.c | 80 -------------------------------
camel/camel-imapx-settings.h | 5 --
docs/reference/camel/camel-sections.txt | 2 -
3 files changed, 0 insertions(+), 87 deletions(-)
---
diff --git a/camel/camel-imapx-settings.c b/camel/camel-imapx-settings.c
index ffd8fd5..2619e20 100644
--- a/camel/camel-imapx-settings.c
+++ b/camel/camel-imapx-settings.c
@@ -33,7 +33,6 @@ struct _CamelIMAPXSettingsPrivate {
gchar *shell_command;
guint batch_fetch_count;
- guint concurrent_connections;
gboolean check_all;
gboolean check_subscribed;
@@ -119,12 +118,6 @@ imapx_settings_set_property (GObject *object,
g_value_get_boolean (value));
return;
- case PROP_CONCURRENT_CONNECTIONS:
- camel_imapx_settings_set_concurrent_connections (
- CAMEL_IMAPX_SETTINGS (object),
- g_value_get_uint (value));
- return;
-
case PROP_FETCH_ORDER:
camel_imapx_settings_set_fetch_order (
CAMEL_IMAPX_SETTINGS (object),
@@ -284,13 +277,6 @@ imapx_settings_get_property (GObject *object,
CAMEL_IMAPX_SETTINGS (object)));
return;
- case PROP_CONCURRENT_CONNECTIONS:
- g_value_set_uint (
- value,
- camel_imapx_settings_get_concurrent_connections (
- CAMEL_IMAPX_SETTINGS (object)));
- return;
-
case PROP_FETCH_ORDER:
g_value_set_enum (
value,
@@ -509,20 +495,6 @@ camel_imapx_settings_class_init (CamelIMAPXSettingsClass *class)
g_object_class_install_property (
object_class,
- PROP_CONCURRENT_CONNECTIONS,
- g_param_spec_uint (
- "concurrent-connections",
- "Concurrent Connections",
- "Number of concurrent IMAP connections to use",
- MIN_CONCURRENT_CONNECTIONS,
- MAX_CONCURRENT_CONNECTIONS,
- 5,
- G_PARAM_READWRITE |
- G_PARAM_CONSTRUCT |
- G_PARAM_STATIC_STRINGS));
-
- g_object_class_install_property (
- object_class,
PROP_FETCH_ORDER,
g_param_spec_enum (
"fetch-order",
@@ -879,58 +851,6 @@ camel_imapx_settings_set_check_subscribed (CamelIMAPXSettings *settings,
}
/**
- * camel_imapx_settings_get_concurrent_connections:
- * @settings: a #CamelIMAPXSettings
- *
- * Returns the number of concurrent network connections to the IMAP server
- * to use for faster command/response processing.
- *
- * Returns: the number of concurrent connections to use
- *
- * Since: 3.2
- **/
-guint
-camel_imapx_settings_get_concurrent_connections (CamelIMAPXSettings *settings)
-{
- g_return_val_if_fail (CAMEL_IS_IMAPX_SETTINGS (settings), 1);
-
- return settings->priv->concurrent_connections;
-}
-
-/**
- * camel_imapx_settings_set_concurrent_connections:
- * @settings: a #CamelIMAPXSettings
- * @concurrent_connections: the number of concurrent connections to use
- *
- * Sets the number of concurrent network connections to the IMAP server to
- * use for faster command/response processing.
- *
- * The minimum number of connections is 1, the maximum is 7. The
- * @concurrent_connections value will be clamped to these limits if
- * necessary.
- *
- * Since: 3.2
- **/
-void
-camel_imapx_settings_set_concurrent_connections (CamelIMAPXSettings *settings,
- guint concurrent_connections)
-{
- g_return_if_fail (CAMEL_IS_IMAPX_SETTINGS (settings));
-
- concurrent_connections = CLAMP (
- concurrent_connections,
- MIN_CONCURRENT_CONNECTIONS,
- MAX_CONCURRENT_CONNECTIONS);
-
- if (settings->priv->concurrent_connections == concurrent_connections)
- return;
-
- settings->priv->concurrent_connections = concurrent_connections;
-
- g_object_notify (G_OBJECT (settings), "concurrent-connections");
-}
-
-/**
* camel_imapx_settings_get_fetch_order:
* @settings: a #CamelIMAPXSettings
*
diff --git a/camel/camel-imapx-settings.h b/camel/camel-imapx-settings.h
index 635f525..7ce3d1a 100644
--- a/camel/camel-imapx-settings.h
+++ b/camel/camel-imapx-settings.h
@@ -75,11 +75,6 @@ gboolean camel_imapx_settings_get_check_subscribed
void camel_imapx_settings_set_check_subscribed
(CamelIMAPXSettings *settings,
gboolean check_subscribed);
-guint camel_imapx_settings_get_concurrent_connections
- (CamelIMAPXSettings *settings);
-void camel_imapx_settings_set_concurrent_connections
- (CamelIMAPXSettings *settings,
- guint concurrent_connections);
CamelSortType camel_imapx_settings_get_fetch_order
(CamelIMAPXSettings *settings);
void camel_imapx_settings_set_fetch_order
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index 2b9fcbf..7c7cd07 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -892,8 +892,6 @@ camel_imapx_settings_get_check_all
camel_imapx_settings_set_check_all
camel_imapx_settings_get_check_subscribed
camel_imapx_settings_set_check_subscribed
-camel_imapx_settings_get_concurrent_connections
-camel_imapx_settings_set_concurrent_connections
camel_imapx_settings_get_fetch_order
camel_imapx_settings_set_fetch_order
camel_imapx_settings_get_filter_all
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]