[evolution] Remove unused e_cert_trust_has_user().



commit 3c91dbbe168f23d161fd2c078c4b29f5977a7f51
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Sep 24 21:29:08 2013 -0400

    Remove unused e_cert_trust_has_user().

 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 b338c40..390c606 100644
--- a/smime/lib/e-cert-trust.c
+++ b/smime/lib/e-cert-trust.c
@@ -292,27 +292,6 @@ e_cert_trust_has_any_user (CERTCertTrust *trust)
 }
 
 PRBool
-e_cert_trust_has_user (CERTCertTrust *trust,
-                       PRBool checkSSL,
-                       PRBool checkEmail,
-                       PRBool checkObjSign)
-{
-       if (checkSSL && !e_cert_trust_has_trust (
-               trust->sslFlags, CERTDB_USER))
-               return PR_FALSE;
-
-       if (checkEmail && !e_cert_trust_has_trust (
-               trust->emailFlags, CERTDB_USER))
-               return PR_FALSE;
-
-       if (checkObjSign && !e_cert_trust_has_trust (
-               trust->objectSigningFlags, CERTDB_USER))
-               return PR_FALSE;
-
-       return PR_TRUE;
-}
-
-PRBool
 e_cert_trust_has_trusted_ca (CERTCertTrust *trust,
                              PRBool checkSSL,
                              PRBool checkEmail,
diff --git a/smime/lib/e-cert-trust.h b/smime/lib/e-cert-trust.h
index a454f3f..c74c2bf 100644
--- a/smime/lib/e-cert-trust.h
+++ b/smime/lib/e-cert-trust.h
@@ -58,10 +58,6 @@ PRBool e_cert_trust_has_peer (CERTCertTrust *trust,
                                PRBool checkEmail,
                                PRBool checkObjSign);
 PRBool e_cert_trust_has_any_user (CERTCertTrust *trust);
-PRBool e_cert_trust_has_user (CERTCertTrust *trust,
-                               PRBool checkSSL,
-                               PRBool checkEmail,
-                               PRBool checkObjSign);
 PRBool e_cert_trust_has_trusted_ca (CERTCertTrust *trust,
                                      PRBool checkSSL,
                                      PRBool checkEmail,


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