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



commit 00b0d04a4edc6676c240fc29e34f5c2c1c551a1c
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Sep 22 09:54:58 2013 -0400

    Remove unused camel_certdb_unlock().

 camel/camel-certdb.c                    |   32 -------------------------------
 camel/camel-certdb.h                    |    2 -
 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 d9ad774..f89fb69 100644
--- a/camel/camel-certdb.c
+++ b/camel/camel-certdb.c
@@ -826,35 +826,3 @@ camel_cert_set_trust (CamelCertDB *certdb,
        cert->trust = trust;
 }
 
-/**
- * camel_certdb_unlock:
- * @certdb: a #CamelCertDB
- * @lock: lock type to unlock
- *
- * Unlocks @certdb's @lock, previously locked with camel_certdb_lock().
- *
- * Since: 2.32
- **/
-void
-camel_certdb_unlock (CamelCertDB *certdb,
-                     CamelCertDBLock lock)
-{
-       g_return_if_fail (CAMEL_IS_CERTDB (certdb));
-
-       switch (lock) {
-       case CAMEL_CERTDB_DB_LOCK:
-               g_mutex_unlock (&certdb->priv->db_lock);
-               break;
-       case CAMEL_CERTDB_IO_LOCK:
-               g_mutex_unlock (&certdb->priv->io_lock);
-               break;
-       case CAMEL_CERTDB_ALLOC_LOCK:
-               g_mutex_unlock (&certdb->priv->alloc_lock);
-               break;
-       case CAMEL_CERTDB_REF_LOCK:
-               g_mutex_unlock (&certdb->priv->ref_lock);
-               break;
-       default:
-               g_return_if_reached ();
-       }
-}
diff --git a/camel/camel-certdb.h b/camel/camel-certdb.h
index e09d4a2..060e251 100644
--- a/camel/camel-certdb.h
+++ b/camel/camel-certdb.h
@@ -181,8 +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_unlock (CamelCertDB *certdb, CamelCertDBLock lock);
-
 G_END_DECLS
 
 #endif /* CAMEL_CERTDB_H */
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index a4d4e53..09c3233 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_unlock
 <SUBSECTION Standard>
 CAMEL_CERTDB
 CAMEL_IS_CERTDB


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