[evolution-data-server] camel_subscribable_folder_is_subscribed: Remove lock.



commit 7e0d7bef0ea408c730ff37d502555a61fdb44c2e
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Dec 1 09:54:22 2013 -0500

    camel_subscribable_folder_is_subscribed: Remove lock.
    
    Don't see any reason to lock here.  Providers ought to be able to handle
    this concurrently with other methods.  Let any side-effects reveal them-
    selves so we can fix them or document them.

 camel/camel-subscribable.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/camel/camel-subscribable.c b/camel/camel-subscribable.c
index 87ededf..c432963 100644
--- a/camel/camel-subscribable.c
+++ b/camel/camel-subscribable.c
@@ -186,7 +186,6 @@ camel_subscribable_folder_is_subscribed (CamelSubscribable *subscribable,
                                          const gchar *folder_name)
 {
        CamelSubscribableInterface *interface;
-       gboolean is_subscribed;
 
        g_return_val_if_fail (CAMEL_IS_SUBSCRIBABLE (subscribable), FALSE);
        g_return_val_if_fail (folder_name != NULL, FALSE);
@@ -194,14 +193,7 @@ camel_subscribable_folder_is_subscribed (CamelSubscribable *subscribable,
        interface = CAMEL_SUBSCRIBABLE_GET_INTERFACE (subscribable);
        g_return_val_if_fail (interface->folder_is_subscribed != NULL, FALSE);
 
-       camel_store_lock (CAMEL_STORE (subscribable));
-
-       is_subscribed = interface->folder_is_subscribed (
-               subscribable, folder_name);
-
-       camel_store_unlock (CAMEL_STORE (subscribable));
-
-       return is_subscribed;
+       return interface->folder_is_subscribed (subscribable, folder_name);
 }
 
 /**


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