[evolution] Remove unused e_cert_db_find_cert_by_nickname().



commit de520f496c30b84c8c4341bc3e21cc46335739f6
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Sep 24 21:43:10 2013 -0400

    Remove unused e_cert_db_find_cert_by_nickname().

 smime/lib/e-cert-db.c |   26 --------------------------
 smime/lib/e-cert-db.h |    5 -----
 2 files changed, 0 insertions(+), 31 deletions(-)
---
diff --git a/smime/lib/e-cert-db.c b/smime/lib/e-cert-db.c
index bb4a68e..3cb87c0 100644
--- a/smime/lib/e-cert-db.c
+++ b/smime/lib/e-cert-db.c
@@ -586,32 +586,6 @@ e_cert_db_shutdown (void)
        /* XXX */
 }
 
-/* searching for certificates */
-ECert *
-e_cert_db_find_cert_by_nickname (ECertDB *certdb,
-                                 const gchar *nickname,
-                                 GError **error)
-{
-       /*  nsNSSShutDownPreventionLock locker;*/
-       CERTCertificate *cert = NULL;
-
-       /*PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("Getting \"%s\"\n", asciiname));*/
-       cert = PK11_FindCertFromNickname ((gchar *) nickname, NULL);
-       if (!cert) {
-               cert = CERT_FindCertByNickname (CERT_GetDefaultCertDB (), (gchar *) nickname);
-       }
-
-       if (cert) {
-               /*    PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("got it\n"));*/
-               ECert *ecert = e_cert_new (cert);
-               return ecert;
-       }
-       else {
-               set_nss_error (error);
-               return NULL;
-       }
-}
-
 #ifdef notyet
 ECert *
 e_cert_db_find_cert_by_key (ECertDB *certdb,
diff --git a/smime/lib/e-cert-db.h b/smime/lib/e-cert-db.h
index 26d0a25..5e4af31 100644
--- a/smime/lib/e-cert-db.h
+++ b/smime/lib/e-cert-db.h
@@ -70,11 +70,6 @@ ECertDB *             e_cert_db_peek         (void);
 
 void                 e_cert_db_shutdown     (void);
 
-/* searching for certificates */
-ECert *               e_cert_db_find_cert_by_nickname (ECertDB *certdb,
-                                                     const gchar *nickname,
-                                                     GError **error);
-
 #ifdef notyet
 ECert *               e_cert_db_find_cert_by_key      (ECertDB *certdb,
                                                      const gchar *db_key,


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