Bugzilla Bug 337025: removed more unused or trivially used variables. NSS_3_11_BRANCH
authorwtchang%redhat.com
Tue, 16 May 2006 01:58:43 +0000
branchNSS_3_11_BRANCH
changeset 7061 78743480ca8e13a929b6e493ef9ecc9eb67a9341
parent 7056 34bd221fdff7cb95237e18978ba9e182c398feb2
child 7063 f74e5022cf420f53df97ba9a3f7d5895e205a550
push idunknown
push userunknown
push dateunknown
bugs337025
Bugzilla Bug 337025: removed more unused or trivially used variables. r=alexei.volkov,nelson.bolyard. Tag: NSS_3_11_BRANCH
security/nss/lib/certdb/stanpcertdb.c
--- a/security/nss/lib/certdb/stanpcertdb.c
+++ b/security/nss/lib/certdb/stanpcertdb.c
@@ -810,28 +810,20 @@ certdb_SaveSingleProfile(CERTCertificate
 		                                          profileTime->len,
 		                                          profileTime->data);
 		stanProfile->profileData = nssItem_Create(arena, 
 		                                          NULL,
 		                                          emailProfile->len,
 		                                          emailProfile->data);
 	    } else if (profileTime && emailProfile) {
 		PRStatus nssrv;
-		NSSDER subject;
 		NSSItem profTime, profData;
-		NSSItem *pprofTime, *pprofData;
-		NSSITEM_FROM_SECITEM(&subject, &cert->derSubject);
-
 		NSSITEM_FROM_SECITEM(&profTime, profileTime);
-		pprofTime = &profTime;
-
 		NSSITEM_FROM_SECITEM(&profData, emailProfile);
-		pprofData = &profData;
-
-		stanProfile = nssSMIMEProfile_Create(c, pprofTime, pprofData);
+		stanProfile = nssSMIMEProfile_Create(c, &profTime, &profData);
 		if (!stanProfile) goto loser;
 		nssrv = nssCryptoContext_ImportSMIMEProfile(cc, stanProfile);
 		rv = (nssrv == PR_SUCCESS) ? SECSuccess : SECFailure;
 	    }
 	} else {
 	    rv = PK11_SaveSMimeProfile(slot, (char *)emailAddr, 
 				&cert->derSubject, emailProfile, profileTime);
 	}