[evolution] Remove unused e_cert_trust_has_ca().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Remove unused e_cert_trust_has_ca().
- Date: Wed, 25 Sep 2013 02:02:35 +0000 (UTC)
commit 817b97b33430bd2f587aa8afb50cc0f7ae79db30
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Sep 24 21:28:25 2013 -0400
Remove unused e_cert_trust_has_ca().
smime/lib/e-cert-trust.c | 21 ---------------------
smime/lib/e-cert-trust.h | 4 ----
2 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/smime/lib/e-cert-trust.c b/smime/lib/e-cert-trust.c
index c81fa56..b338c40 100644
--- a/smime/lib/e-cert-trust.c
+++ b/smime/lib/e-cert-trust.c
@@ -260,27 +260,6 @@ e_cert_trust_has_any_ca (CERTCertTrust *trust)
}
PRBool
-e_cert_trust_has_ca (CERTCertTrust *trust,
- PRBool checkSSL,
- PRBool checkEmail,
- PRBool checkObjSign)
-{
- if (checkSSL && !e_cert_trust_has_trust (
- trust->sslFlags, CERTDB_VALID_CA))
- return PR_FALSE;
-
- if (checkEmail && !e_cert_trust_has_trust (
- trust->emailFlags, CERTDB_VALID_CA))
- return PR_FALSE;
-
- if (checkObjSign && !e_cert_trust_has_trust (
- trust->objectSigningFlags, CERTDB_VALID_CA))
- return PR_FALSE;
-
- return PR_TRUE;
-}
-
-PRBool
e_cert_trust_has_peer (CERTCertTrust *trust,
PRBool checkSSL,
PRBool checkEmail,
diff --git a/smime/lib/e-cert-trust.h b/smime/lib/e-cert-trust.h
index 601f4d8..a454f3f 100644
--- a/smime/lib/e-cert-trust.h
+++ b/smime/lib/e-cert-trust.h
@@ -53,10 +53,6 @@ void e_cert_trust_set_valid_ca (CERTCertTrust *trust);
void e_cert_trust_set_valid_peer (CERTCertTrust *trust);
void e_cert_trust_set_valid_server_peer (CERTCertTrust *trust);
PRBool e_cert_trust_has_any_ca (CERTCertTrust *trust);
-PRBool e_cert_trust_has_ca (CERTCertTrust *trust,
- PRBool checkSSL,
- PRBool checkEmail,
- PRBool checkObjSign);
PRBool e_cert_trust_has_peer (CERTCertTrust *trust,
PRBool checkSSL,
PRBool checkEmail,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]