[evolution-data-server] Remove unused camel_certdb_lock().



commit 3e4baaf2956e8c8fc0d5390ef259ba97704e7d71
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Sep 22 09:54:16 2013 -0400

    Remove unused camel_certdb_lock().

 camel/camel-certdb.c                    |   33 -------------------------------
 camel/camel-certdb.h                    |    1 -
 docs/reference/camel/camel-sections.txt |    1 -
 3 files changed, 0 insertions(+), 35 deletions(-)
---
diff --git a/camel/camel-certdb.c b/camel/camel-certdb.c
index b54fce2..d9ad774 100644
--- a/camel/camel-certdb.c
+++ b/camel/camel-certdb.c
@@ -827,39 +827,6 @@ camel_cert_set_trust (CamelCertDB *certdb,
 }
 
 /**
- * camel_certdb_lock:
- * @certdb: a #CamelCertDB
- * @lock: lock type to lock
- *
- * Locks @certdb's @lock. Unlock it with camel_certdb_unlock().
- *
- * Since: 2.32
- **/
-void
-camel_certdb_lock (CamelCertDB *certdb,
-                   CamelCertDBLock lock)
-{
-       g_return_if_fail (CAMEL_IS_CERTDB (certdb));
-
-       switch (lock) {
-       case CAMEL_CERTDB_DB_LOCK:
-               g_mutex_lock (&certdb->priv->db_lock);
-               break;
-       case CAMEL_CERTDB_IO_LOCK:
-               g_mutex_lock (&certdb->priv->io_lock);
-               break;
-       case CAMEL_CERTDB_ALLOC_LOCK:
-               g_mutex_lock (&certdb->priv->alloc_lock);
-               break;
-       case CAMEL_CERTDB_REF_LOCK:
-               g_mutex_lock (&certdb->priv->ref_lock);
-               break;
-       default:
-               g_return_if_reached ();
-       }
-}
-
-/**
  * camel_certdb_unlock:
  * @certdb: a #CamelCertDB
  * @lock: lock type to unlock
diff --git a/camel/camel-certdb.h b/camel/camel-certdb.h
index 8a6edd9..e09d4a2 100644
--- a/camel/camel-certdb.h
+++ b/camel/camel-certdb.h
@@ -181,7 +181,6 @@ void camel_cert_set_string (CamelCertDB *certdb, CamelCert *cert, gint string, c
 CamelCertTrust camel_cert_get_trust (CamelCertDB *certdb, CamelCert *cert);
 void camel_cert_set_trust (CamelCertDB *certdb, CamelCert *cert, CamelCertTrust trust);
 
-void camel_certdb_lock  (CamelCertDB *certdb, CamelCertDBLock lock);
 void camel_certdb_unlock (CamelCertDB *certdb, CamelCertDBLock lock);
 
 G_END_DECLS
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index 2542dad..a4d4e53 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -112,7 +112,6 @@ camel_cert_set_fingerprint
 camel_cert_get_trust
 camel_cert_set_trust
 CamelCertDBLock
-camel_certdb_lock
 camel_certdb_unlock
 <SUBSECTION Standard>
 CAMEL_CERTDB


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