[evolution-data-server] CamelVeeMessageInfo: Remove unused 'old_flags' member.



commit 5303381316dd184b22004bbd5dd6e1320adaed18
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Sep 18 20:05:55 2013 -0400

    CamelVeeMessageInfo: Remove unused 'old_flags' member.
    
    Set in various places but never used.

 camel/camel-vee-summary.c |   16 +---------------
 camel/camel-vee-summary.h |    1 -
 2 files changed, 1 insertions(+), 16 deletions(-)
---
diff --git a/camel/camel-vee-summary.c b/camel/camel-vee-summary.c
index 0de3ae1..4b56ef3 100644
--- a/camel/camel-vee-summary.c
+++ b/camel/camel-vee-summary.c
@@ -251,7 +251,6 @@ vee_info_set_flags (CamelMessageInfo *mi,
 
                camel_folder_freeze (camel_folder_summary_get_folder (rmi->summary));
                res = camel_message_info_set_flags (rmi, flags, set);
-               ((CamelVeeMessageInfo *) mi)->old_flags = camel_message_info_flags (rmi);
                camel_folder_thaw (camel_folder_summary_get_folder (rmi->summary));
 
                if (res) {
@@ -444,8 +443,7 @@ camel_vee_summary_add (CamelVeeSummary *s,
                        CamelVeeMessageInfoData *mi_data)
 {
        CamelVeeMessageInfo *vmi;
-       CamelMessageInfo *rmi;
-       const gchar *uid, *vuid;
+       const gchar *vuid;
        CamelVeeSubfolderData *sf_data;
        CamelFolder *orig_folder;
        GHashTable *vuids;
@@ -456,7 +454,6 @@ camel_vee_summary_add (CamelVeeSummary *s,
        camel_folder_summary_lock (&s->summary, CAMEL_FOLDER_SUMMARY_SUMMARY_LOCK);
 
        sf_data = camel_vee_message_info_data_get_subfolder_data (mi_data);
-       uid = camel_vee_message_info_data_get_orig_message_uid (mi_data);
        vuid = camel_vee_message_info_data_get_vee_message_uid (mi_data);
        orig_folder = camel_vee_subfolder_data_get_folder (sf_data);
 
@@ -478,13 +475,6 @@ camel_vee_summary_add (CamelVeeSummary *s,
 
        camel_message_info_ref (vmi);
 
-       /* Get actual flags and store it */
-       rmi = camel_folder_summary_get (orig_folder->summary, uid);
-       if (rmi) {
-               vmi->old_flags = camel_message_info_flags (rmi);
-               camel_message_info_free (rmi);
-       }
-
        vuids = g_hash_table_lookup (s->priv->vuids_by_subfolder, orig_folder);
        if (vuids) {
                g_hash_table_insert (vuids, (gpointer) camel_pstring_strdup (vuid), GINT_TO_POINTER (1));
@@ -558,7 +548,6 @@ camel_vee_summary_replace_flags (CamelVeeSummary *summary,
                                  const gchar *uid)
 {
        CamelMessageInfo *mi;
-       CamelVeeMessageInfo *vmi;
 
        g_return_if_fail (CAMEL_IS_VEE_SUMMARY (summary));
        g_return_if_fail (uid != NULL);
@@ -571,9 +560,6 @@ camel_vee_summary_replace_flags (CamelVeeSummary *summary,
                return;
        }
 
-       vmi = (CamelVeeMessageInfo *) mi;
-       vmi->old_flags = camel_message_info_flags (mi);
-
        camel_folder_summary_replace_flags (&summary->summary, mi);
        camel_message_info_free (mi);
 
diff --git a/camel/camel-vee-summary.h b/camel/camel-vee-summary.h
index 4b866ea..5bfbfe6 100644
--- a/camel/camel-vee-summary.h
+++ b/camel/camel-vee-summary.h
@@ -63,7 +63,6 @@ typedef struct _CamelVeeMessageInfo CamelVeeMessageInfo;
 struct _CamelVeeMessageInfo {
        CamelMessageInfoBase info;
        CamelFolderSummary *orig_summary;
-       guint32 old_flags;  /* These are just for identifying changed flags */
 };
 
 struct _CamelVeeSummary {


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