aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-09-25 09:43:10 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-09-25 10:02:32 +0800
commitde520f496c30b84c8c4341bc3e21cc46335739f6 (patch)
tree7a69ef96bde616d4ab9ec30e8a26f4e5639b1c61
parent0975251096761e5beedcb1b7c3f23e0633d1937e (diff)
downloadgsoc2013-evolution-de520f496c30b84c8c4341bc3e21cc46335739f6.tar
gsoc2013-evolution-de520f496c30b84c8c4341bc3e21cc46335739f6.tar.gz
gsoc2013-evolution-de520f496c30b84c8c4341bc3e21cc46335739f6.tar.bz2
gsoc2013-evolution-de520f496c30b84c8c4341bc3e21cc46335739f6.tar.lz
gsoc2013-evolution-de520f496c30b84c8c4341bc3e21cc46335739f6.tar.xz
gsoc2013-evolution-de520f496c30b84c8c4341bc3e21cc46335739f6.tar.zst
gsoc2013-evolution-de520f496c30b84c8c4341bc3e21cc46335739f6.zip
Remove unused e_cert_db_find_cert_by_nickname().
-rw-r--r--smime/lib/e-cert-db.c26
-rw-r--r--smime/lib/e-cert-db.h5
2 files changed, 0 insertions, 31 deletions
diff --git a/smime/lib/e-cert-db.c b/smime/lib/e-cert-db.c
index bb4a68e61d..3cb87c0010 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 26d0a25c2a..5e4af31888 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,