Skip to content

Commit

Permalink
Bug 1431113 - Remove #ifdef DEBUG_jp96085 r=jcj
Browse files Browse the repository at this point in the history
Remove an old debug flag!

--HG--
extra : amend_source : 15838cd2e4a2dd31183449abf7ec03acad25c179
  • Loading branch information
manishkk committed Aug 30, 2018
1 parent 0e1ab41 commit 30903da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
16 changes: 1 addition & 15 deletions cmd/crlutil/crlutil.c
Expand Up @@ -232,10 +232,6 @@ ImportCRL(CERTCertDBHandle *certHandle, char *url, int type,
SECItem crlDER;
PK11SlotInfo *slot = NULL;
int rv;
#if defined(DEBUG_jp96085)
PRIntervalTime starttime, endtime, elapsed;
PRUint32 mins, secs, msecs;
#endif

crlDER.data = NULL;

Expand All @@ -256,19 +252,9 @@ ImportCRL(CERTCertDBHandle *certHandle, char *url, int type,
goto loser;
}

#if defined(DEBUG_jp96085)
starttime = PR_IntervalNow();
#endif
crl = PK11_ImportCRL(slot, &crlDER, url, type,
NULL, importOptions, NULL, decodeOptions);
#if defined(DEBUG_jp96085)
endtime = PR_IntervalNow();
elapsed = endtime - starttime;
mins = PR_IntervalToSeconds(elapsed) / 60;
secs = PR_IntervalToSeconds(elapsed) % 60;
msecs = PR_IntervalToMilliseconds(elapsed) % 1000;
printf("Elapsed : %2d:%2d.%3d\n", mins, secs, msecs);
#endif

if (!crl) {
const char *errString;

Expand Down
3 changes: 0 additions & 3 deletions lib/util/secport.c
Expand Up @@ -199,9 +199,6 @@ PORT_Strdup(const char *str)
void
PORT_SetError(int value)
{
#ifdef DEBUG_jp96085
PORT_Assert(value != SEC_ERROR_REUSED_ISSUER_AND_SERIAL);
#endif
PR_SetError(value, 0);
return;
}
Expand Down

0 comments on commit 30903da

Please sign in to comment.