[evolution-data-server] CamelCertDB: Remove unused cert_get_string() method.



commit 36e888ecd923444730fed91a0a5ac297bc8dbcd3
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Sep 22 11:41:19 2013 -0400

    CamelCertDB: Remove unused cert_get_string() method.

 camel/camel-certdb.c |   20 --------------------
 camel/camel-certdb.h |    3 ---
 2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/camel/camel-certdb.c b/camel/camel-certdb.c
index 2c07ea7..8c8b4ab 100644
--- a/camel/camel-certdb.c
+++ b/camel/camel-certdb.c
@@ -228,25 +228,6 @@ certdb_cert_save (CamelCertDB *certdb,
        return 0;
 }
 
-static const gchar *
-certdb_cert_get_string (CamelCertDB *certdb,
-                        CamelCert *cert,
-                        gint string)
-{
-       switch (string) {
-               case CAMEL_CERT_STRING_ISSUER:
-                       return cert->issuer;
-               case CAMEL_CERT_STRING_SUBJECT:
-                       return cert->subject;
-               case CAMEL_CERT_STRING_HOSTNAME:
-                       return cert->hostname;
-               case CAMEL_CERT_STRING_FINGERPRINT:
-                       return cert->fingerprint;
-               default:
-                       return NULL;
-       }
-}
-
 static void
 certdb_cert_set_string (CamelCertDB *certdb,
                         CamelCert *cert,
@@ -289,7 +270,6 @@ camel_certdb_class_init (CamelCertDBClass *class)
        class->header_save = certdb_header_save;
        class->cert_load = certdb_cert_load;
        class->cert_save = certdb_cert_save;
-       class->cert_get_string = certdb_cert_get_string;
        class->cert_set_string = certdb_cert_set_string;
 }
 
diff --git a/camel/camel-certdb.h b/camel/camel-certdb.h
index 832d2fe..66f5e35 100644
--- a/camel/camel-certdb.h
+++ b/camel/camel-certdb.h
@@ -102,9 +102,6 @@ struct _CamelCertDBClass {
                                                 CamelCert *cert,
                                                 FILE *ostream);
 
-       const gchar *   (*cert_get_string)      (CamelCertDB *certdb,
-                                                CamelCert *cert,
-                                                gint string);
        void            (*cert_set_string)      (CamelCertDB *certdb,
                                                 CamelCert *cert,
                                                 gint string,


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