[evolution-data-server] CamelSession: Remove "check-junk" property.



commit 7aa426b876845fb114facedcdd489b3952e3949e
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Nov 24 16:02:07 2013 -0500

    CamelSession: Remove "check-junk" property.
    
    Evolution uses it but Camel doesn't.  Move it to Evolution.

 camel/camel-session.c                   |   60 -------------------------------
 docs/reference/camel/camel-sections.txt |    2 -
 2 files changed, 0 insertions(+), 62 deletions(-)
---
diff --git a/camel/camel-session.c b/camel/camel-session.c
index ffb277b..123e41d 100644
--- a/camel/camel-session.c
+++ b/camel/camel-session.c
@@ -72,7 +72,6 @@ struct _CamelSessionPrivate {
 
        GMainContext *main_context;
 
-       guint check_junk        : 1;
        guint online            : 1;
 };
 
@@ -94,7 +93,6 @@ struct _JobData {
 
 enum {
        PROP_0,
-       PROP_CHECK_JUNK,
        PROP_JUNK_FILTER,
        PROP_MAIN_CONTEXT,
        PROP_ONLINE,
@@ -239,12 +237,6 @@ session_set_property (GObject *object,
                       GParamSpec *pspec)
 {
        switch (property_id) {
-               case PROP_CHECK_JUNK:
-                       camel_session_set_check_junk (
-                               CAMEL_SESSION (object),
-                               g_value_get_boolean (value));
-                       return;
-
                case PROP_JUNK_FILTER:
                        camel_session_set_junk_filter (
                                CAMEL_SESSION (object),
@@ -280,12 +272,6 @@ session_get_property (GObject *object,
                       GParamSpec *pspec)
 {
        switch (property_id) {
-               case PROP_CHECK_JUNK:
-                       g_value_set_boolean (
-                               value, camel_session_get_check_junk (
-                               CAMEL_SESSION (object)));
-                       return;
-
                case PROP_JUNK_FILTER:
                        g_value_set_object (
                                value, camel_session_get_junk_filter (
@@ -725,18 +711,6 @@ camel_session_class_init (CamelSessionClass *class)
 
        g_object_class_install_property (
                object_class,
-               PROP_CHECK_JUNK,
-               g_param_spec_boolean (
-                       "check-junk",
-                       "Check Junk",
-                       "Check incoming messages for junk",
-                       FALSE,
-                       G_PARAM_READWRITE |
-                       G_PARAM_CONSTRUCT |
-                       G_PARAM_STATIC_STRINGS));
-
-       g_object_class_install_property (
-               object_class,
                PROP_JUNK_FILTER,
                g_param_spec_object (
                        "junk-filter",
@@ -1577,40 +1551,6 @@ camel_session_submit_job (CamelSession *session,
 }
 
 /**
- * camel_session_get_check_junk:
- * @session: a #CamelSession
- *
- * Do we have to check incoming messages to be junk?
- *
- * Returns: whether or not we are checking incoming messages for junk
- **/
-gboolean
-camel_session_get_check_junk (CamelSession *session)
-{
-       g_return_val_if_fail (CAMEL_IS_SESSION (session), FALSE);
-
-       return session->priv->check_junk;
-}
-
-/**
- * camel_session_set_check_junk:
- * @session: a #CamelSession
- * @check_junk: whether to check incoming messages for junk
- *
- * Set check_junk flag, if set, incoming mail will be checked for being junk.
- **/
-void
-camel_session_set_check_junk (CamelSession *session,
-                              gboolean check_junk)
-{
-       g_return_if_fail (CAMEL_IS_SESSION (session));
-
-       session->priv->check_junk = check_junk;
-
-       g_object_notify (G_OBJECT (session), "check-junk");
-}
-
-/**
  * camel_session_set_junk_headers:
  *
  * Since: 2.22
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index 111e576..be4fe80 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -1914,8 +1914,6 @@ camel_session_trust_prompt
 camel_session_get_online
 camel_session_set_online
 camel_session_get_filter_driver
-camel_session_get_check_junk
-camel_session_set_check_junk
 camel_session_get_junk_filter
 camel_session_set_junk_filter
 camel_session_idle_add


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