[evolution-data-server] Remove CAMEL_FOLDER_SUMMARY_IO_LOCK.



commit a3842fc869f5f18bc915bc9c41465799d696d602
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Sep 16 10:33:51 2013 -0400

    Remove CAMEL_FOLDER_SUMMARY_IO_LOCK.
    
    Not even the private 'io_lock' mutex was used.

 camel/camel-folder-summary.c |    9 ---------
 camel/camel-folder-summary.h |    1 -
 2 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c
index 9433411..29725d5 100644
--- a/camel/camel-folder-summary.c
+++ b/camel/camel-folder-summary.c
@@ -81,7 +81,6 @@ struct _CamelFolderSummaryPrivate {
        struct _CamelIndex *index;
 
        GRecMutex summary_lock; /* for the summary hashtable/array */
-       GRecMutex io_lock;      /* load/save lock, for access to saved_count, etc */
        GRecMutex filter_lock;  /* for accessing any of the filtering/indexing stuff, since we share them */
        GRecMutex alloc_lock;   /* for setting up and using allocators */
 
@@ -246,7 +245,6 @@ folder_summary_finalize (GObject *object)
        g_hash_table_destroy (priv->preview_updates);
 
        g_rec_mutex_clear (&priv->summary_lock);
-       g_rec_mutex_clear (&priv->io_lock);
        g_rec_mutex_clear (&priv->filter_lock);
        g_rec_mutex_clear (&priv->alloc_lock);
 
@@ -1347,7 +1345,6 @@ camel_folder_summary_init (CamelFolderSummary *summary)
        summary->priv->loaded_infos = g_hash_table_new (g_str_hash, g_str_equal);
 
        g_rec_mutex_init (&summary->priv->summary_lock);
-       g_rec_mutex_init (&summary->priv->io_lock);
        g_rec_mutex_init (&summary->priv->filter_lock);
        g_rec_mutex_init (&summary->priv->alloc_lock);
 
@@ -4795,9 +4792,6 @@ camel_folder_summary_lock (CamelFolderSummary *summary,
                case CAMEL_FOLDER_SUMMARY_SUMMARY_LOCK:
                        g_rec_mutex_lock (&summary->priv->summary_lock);
                        break;
-               case CAMEL_FOLDER_SUMMARY_IO_LOCK:
-                       g_rec_mutex_lock (&summary->priv->io_lock);
-                       break;
                case CAMEL_FOLDER_SUMMARY_FILTER_LOCK:
                        g_rec_mutex_lock (&summary->priv->filter_lock);
                        break;
@@ -4828,9 +4822,6 @@ camel_folder_summary_unlock (CamelFolderSummary *summary,
                case CAMEL_FOLDER_SUMMARY_SUMMARY_LOCK:
                        g_rec_mutex_unlock (&summary->priv->summary_lock);
                        break;
-               case CAMEL_FOLDER_SUMMARY_IO_LOCK:
-                       g_rec_mutex_unlock (&summary->priv->io_lock);
-                       break;
                case CAMEL_FOLDER_SUMMARY_FILTER_LOCK:
                        g_rec_mutex_unlock (&summary->priv->filter_lock);
                        break;
diff --git a/camel/camel-folder-summary.h b/camel/camel-folder-summary.h
index e5f3131..073522a 100644
--- a/camel/camel-folder-summary.h
+++ b/camel/camel-folder-summary.h
@@ -232,7 +232,6 @@ typedef enum {
  **/
 typedef enum _CamelFolderSummaryLock {
        CAMEL_FOLDER_SUMMARY_SUMMARY_LOCK,
-       CAMEL_FOLDER_SUMMARY_IO_LOCK,
        CAMEL_FOLDER_SUMMARY_FILTER_LOCK,
        CAMEL_FOLDER_SUMMARY_ALLOC_LOCK,
 } CamelFolderSummaryLock;


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