[evolution-data-server] Remove unused CAMEL_STORE_INFO_FOLDER_CHECK_FOR_NEW flag.



commit f2cfafbe088cd4ef887733caecf3caeb0b7044bc
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Jul 14 00:50:19 2013 -0400

    Remove unused CAMEL_STORE_INFO_FOLDER_CHECK_FOR_NEW flag.
    
    Checked for but never set.
    
    Also remove unused CAMEL_FOLDER_CHECK_FOR_NEW flag.

 camel/camel-enums.h       |    4 ++--
 camel/camel-imapx-store.c |   17 +----------------
 2 files changed, 3 insertions(+), 18 deletions(-)
---
diff --git a/camel/camel-enums.h b/camel/camel-enums.h
index 3dd1d98..0a9cde3 100644
--- a/camel/camel-enums.h
+++ b/camel/camel-enums.h
@@ -127,7 +127,7 @@ typedef enum { /*< flags >*/
        CAMEL_FOLDER_TYPE_MEMOS    = 8 << CAMEL_FOLDER_TYPE_BIT,
        CAMEL_FOLDER_TYPE_TASKS    = 9 << CAMEL_FOLDER_TYPE_BIT,
        CAMEL_FOLDER_READONLY      = 1 << 16,
-       CAMEL_FOLDER_CHECK_FOR_NEW = 1 << 17,
+       /* empty gap from unused flag removal */
        CAMEL_FOLDER_FLAGGED       = 1 << 18,
 
        CAMEL_FOLDER_FLAGS_LAST    = 1 << 24  /*< skip >*/
@@ -194,7 +194,7 @@ typedef enum { /*< flags >*/
        CAMEL_STORE_INFO_FOLDER_SHARED_TO_ME  = 1 << 8,
        CAMEL_STORE_INFO_FOLDER_SHARED_BY_ME  = 1 << 9,
        CAMEL_STORE_INFO_FOLDER_READONLY      = 1 << 16,
-       CAMEL_STORE_INFO_FOLDER_CHECK_FOR_NEW = 1 << 17,
+       /* empty gap from unused flag removal */
        CAMEL_STORE_INFO_FOLDER_FLAGGED       = 1 << 18,
 
        CAMEL_STORE_INFO_FOLDER_LAST          = 1 << 24  /*< skip >*/
diff --git a/camel/camel-imapx-store.c b/camel/camel-imapx-store.c
index 1eb11d4..7f43e04 100644
--- a/camel/camel-imapx-store.c
+++ b/camel/camel-imapx-store.c
@@ -1093,7 +1093,7 @@ add_folders_to_summary (CamelIMAPXStore *imapx_store,
                if (!si)
                        continue;
 
-               new_flags = (si->info.flags & (CAMEL_STORE_INFO_FOLDER_SUBSCRIBED | 
CAMEL_STORE_INFO_FOLDER_CHECK_FOR_NEW)) |
+               new_flags = (si->info.flags & CAMEL_STORE_INFO_FOLDER_SUBSCRIBED) |
                                                (li->flags & ~CAMEL_STORE_INFO_FOLDER_SUBSCRIBED);
 
                if (CAMEL_IMAPX_LACK_CAPABILITY (server->cinfo, NAMESPACE))
@@ -1459,21 +1459,6 @@ imapx_can_refresh_folder (CamelStore *store,
        res = store_class->can_refresh_folder (store, info, &local_error) ||
                check_all || (check_subscribed && subscribed);
 
-       if (!res && local_error == NULL && CAMEL_IS_IMAPX_STORE (store)) {
-               CamelStoreInfo *si;
-               CamelStoreSummary *sm = CAMEL_STORE_SUMMARY (((CamelIMAPXStore *)(store))->summary);
-
-               if (!sm)
-                       return FALSE;
-
-               si = camel_store_summary_path (sm, info->full_name);
-               if (si) {
-                       res = (si->flags & CAMEL_STORE_INFO_FOLDER_CHECK_FOR_NEW) != 0 ? TRUE : FALSE;
-
-                       camel_store_summary_info_free (sm, si);
-               }
-       }
-
        if (local_error != NULL)
                g_propagate_error (error, local_error);
 


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