[evolution-data-server] CamelCertDB: Remove unused CamelCert get/set functions.



commit c672ebaf29253f735caffba189e7afd7db6d9d86
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Sep 22 11:28:18 2013 -0400

    CamelCertDB: Remove unused CamelCert get/set functions.

 camel/camel-certdb.c                    |   58 -------------------------------
 camel/camel-certdb.h                    |   32 -----------------
 docs/reference/camel/camel-sections.txt |   12 ------
 3 files changed, 0 insertions(+), 102 deletions(-)
---
diff --git a/camel/camel-certdb.c b/camel/camel-certdb.c
index 13bedb9..2c07ea7 100644
--- a/camel/camel-certdb.c
+++ b/camel/camel-certdb.c
@@ -707,61 +707,3 @@ camel_certdb_clear (CamelCertDB *certdb)
        g_mutex_unlock (&certdb->priv->db_lock);
 }
 
-const gchar *
-camel_cert_get_string (CamelCertDB *certdb,
-                       CamelCert *cert,
-                       gint string)
-{
-       CamelCertDBClass *class;
-
-       g_return_val_if_fail (CAMEL_IS_CERTDB (certdb), NULL);
-       g_return_val_if_fail (cert != NULL, NULL);
-
-       class = CAMEL_CERTDB_GET_CLASS (certdb);
-       g_return_val_if_fail (class->cert_get_string != NULL, NULL);
-
-       /* FIXME: do locking? */
-
-       return class->cert_get_string (certdb, cert, string);
-}
-
-void
-camel_cert_set_string (CamelCertDB *certdb,
-                       CamelCert *cert,
-                       gint string,
-                       const gchar *value)
-{
-       CamelCertDBClass *class;
-
-       g_return_if_fail (CAMEL_IS_CERTDB (certdb));
-       g_return_if_fail (cert != NULL);
-
-       class = CAMEL_CERTDB_GET_CLASS (certdb);
-       g_return_if_fail (class->cert_set_string != NULL);
-
-       /* FIXME: do locking? */
-
-       class->cert_set_string (certdb, cert, string, value);
-}
-
-CamelCertTrust
-camel_cert_get_trust (CamelCertDB *certdb,
-                      CamelCert *cert)
-{
-       g_return_val_if_fail (CAMEL_IS_CERTDB (certdb), CAMEL_CERT_TRUST_UNKNOWN);
-       g_return_val_if_fail (cert != NULL, CAMEL_CERT_TRUST_UNKNOWN);
-
-       return cert->trust;
-}
-
-void
-camel_cert_set_trust (CamelCertDB *certdb,
-                      CamelCert *cert,
-                      CamelCertTrust trust)
-{
-       g_return_if_fail (CAMEL_IS_CERTDB (certdb));
-       g_return_if_fail (cert != NULL);
-
-       cert->trust = trust;
-}
-
diff --git a/camel/camel-certdb.h b/camel/camel-certdb.h
index 4c7ab6b..832d2fe 100644
--- a/camel/camel-certdb.h
+++ b/camel/camel-certdb.h
@@ -144,38 +144,6 @@ void               camel_certdb_remove_host        (CamelCertDB *certdb,
 
 void           camel_certdb_clear              (CamelCertDB *certdb);
 
-const gchar *  camel_cert_get_string           (CamelCertDB *certdb,
-                                                CamelCert *cert,
-                                                gint string);
-void           camel_cert_set_string           (CamelCertDB *certdb,
-                                                CamelCert *cert,
-                                                gint string,
-                                                const gchar *value);
-
-#define camel_cert_get_issuer(certdb, cert) \
-       camel_cert_get_string (certdb, cert, CAMEL_CERT_STRING_ISSUER)
-#define camel_cert_get_subject(certdb, cert) \
-       camel_cert_get_string (certdb, cert, CAMEL_CERT_STRING_SUBJECT)
-#define camel_cert_get_hostname(certdb, cert) \
-       camel_cert_get_string (certdb, cert, CAMEL_CERT_STRING_HOSTNAME)
-#define camel_cert_get_fingerprint(certdb, cert) \
-       camel_cert_get_string (certdb, cert, CAMEL_CERT_STRING_FINGERPRINT)
-
-#define camel_cert_set_issuer(certdb, cert, issuer) \
-       camel_cert_set_string (certdb, cert, CAMEL_CERT_STRING_ISSUER, issuer)
-#define camel_cert_set_subject(certdb, cert, subject) \
-       camel_cert_set_string (certdb, cert, CAMEL_CERT_STRING_SUBJECT, subject)
-#define camel_cert_set_hostname(certdb, cert, hostname) \
-       camel_cert_set_string (certdb, cert, CAMEL_CERT_STRING_HOSTNAME, hostname)
-#define camel_cert_set_fingerprint(certdb, cert, fingerprint) \
-       camel_cert_set_string (certdb, cert, CAMEL_CERT_STRING_FINGERPRINT, fingerprint)
-
-CamelCertTrust camel_cert_get_trust            (CamelCertDB *certdb,
-                                                CamelCert *cert);
-void           camel_cert_set_trust            (CamelCertDB *certdb,
-                                                CamelCert *cert,
-                                                CamelCertTrust trust);
-
 G_END_DECLS
 
 #endif /* CAMEL_CERTDB_H */
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index d57b292..ba847dc 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -98,18 +98,6 @@ camel_certdb_get_host
 camel_certdb_put
 camel_certdb_remove_host
 camel_certdb_clear
-camel_cert_get_string
-camel_cert_set_string
-camel_cert_get_issuer
-camel_cert_get_subject
-camel_cert_get_hostname
-camel_cert_get_fingerprint
-camel_cert_set_issuer
-camel_cert_set_subject
-camel_cert_set_hostname
-camel_cert_set_fingerprint
-camel_cert_get_trust
-camel_cert_set_trust
 <SUBSECTION Standard>
 CAMEL_CERTDB
 CAMEL_IS_CERTDB


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