From: Matthew Barnes Date: Sun, 22 Sep 2013 13:54:16 +0000 (-0400) Subject: Remove unused camel_certdb_lock(). X-Git-Tag: submit/tizen/20140917.130222~611 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e4baaf2956e8c8fc0d5390ef259ba97704e7d71;p=platform%2Fupstream%2Fevolution-data-server.git Remove unused camel_certdb_lock(). --- 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 CAMEL_CERTDB