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



commit 39219bced9513ec313e3b0f264c46230d9896122
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sun Sep 22 11:41:50 2013 -0400

    CamelCertDB: Remove unused cert_set_string() method.

 camel/camel-certdb.c |   29 -----------------------------
 camel/camel-certdb.h |    5 -----
 2 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/camel/camel-certdb.c b/camel/camel-certdb.c
index 8c8b4ab..4e1fb8e 100644
--- a/camel/camel-certdb.c
+++ b/camel/camel-certdb.c
@@ -229,34 +229,6 @@ certdb_cert_save (CamelCertDB *certdb,
 }
 
 static void
-certdb_cert_set_string (CamelCertDB *certdb,
-                        CamelCert *cert,
-                        gint string,
-                        const gchar *value)
-{
-       switch (string) {
-               case CAMEL_CERT_STRING_ISSUER:
-                       g_free (cert->issuer);
-                       cert->issuer = g_strdup (value);
-                       break;
-               case CAMEL_CERT_STRING_SUBJECT:
-                       g_free (cert->subject);
-                       cert->subject = g_strdup (value);
-                       break;
-               case CAMEL_CERT_STRING_HOSTNAME:
-                       g_free (cert->hostname);
-                       cert->hostname = g_strdup (value);
-                       break;
-               case CAMEL_CERT_STRING_FINGERPRINT:
-                       g_free (cert->fingerprint);
-                       cert->fingerprint = g_strdup (value);
-                       break;
-               default:
-                       break;
-       }
-}
-
-static void
 camel_certdb_class_init (CamelCertDBClass *class)
 {
        GObjectClass *object_class;
@@ -270,7 +242,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_set_string = certdb_cert_set_string;
 }
 
 static void
diff --git a/camel/camel-certdb.h b/camel/camel-certdb.h
index 66f5e35..0b94a50 100644
--- a/camel/camel-certdb.h
+++ b/camel/camel-certdb.h
@@ -101,11 +101,6 @@ struct _CamelCertDBClass {
        gint            (*cert_save)            (CamelCertDB *certdb,
                                                 CamelCert *cert,
                                                 FILE *ostream);
-
-       void            (*cert_set_string)      (CamelCertDB *certdb,
-                                                CamelCert *cert,
-                                                gint string,
-                                                const gchar *value);
 };
 
 CamelCert *    camel_cert_new                  (void);


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