Closed
Bug 380334
Opened 18 years ago
Closed 18 years ago
CERT_HTMLCertInfo is dead code
Categories
(NSS :: Libraries, defect)
NSS
Libraries
Tracking
(Not tracked)
RESOLVED
FIXED
3.11.7
People
(Reporter: julien.pierre, Assigned: julien.pierre)
Details
Attachments
(2 files, 1 obsolete file)
8.44 KB,
patch
|
nelson
:
review+
rrelyea
:
superreview+
|
Details | Diff | Splinter Review |
10.65 KB,
patch
|
nelson
:
review+
rrelyea
:
superreview+
|
Details | Diff | Splinter Review |
This function, implemented in lib/certhigh/certhtml.c, is not exported from nss.def, and not used in any cmd programs. So it is dead code. I propose deleting it.
Assignee | ||
Comment 1•18 years ago
|
||
Attachment #264417 -
Flags: superreview?(rrelyea)
Attachment #264417 -
Flags: review?(nelson)
Comment 2•18 years ago
|
||
Comment on attachment 264417 [details] [diff] [review]
remove dead code
r+= relyea...
wow a refugee from the old sec/lib/ui or whatever we called the old html UI.
are we still using gatherStrings() as well and where is it?
bob
Attachment #264417 -
Flags: superreview?(rrelyea) → superreview+
Comment 3•18 years ago
|
||
Comment on attachment 264417 [details] [diff] [review]
remove dead code
We cannot remove the function from the nss.def file. Doing so would change the
ordinals of the function addresses in the DLL's table of function pointers.
So, for backwards binary compatibility we need to retain the function in the
nss.def file.
Having the function name in the nss.def file will create an unsatisfied external
at link time when linking the DLL, unless there is an external function by that
name.
So, the conclusion is: we can't remove the function completely. The best we
can do is change the implementation to set an appropriate error code and then
return NULL.
Attachment #264417 -
Flags: review?(nelson) → review-
Assignee | ||
Comment 4•18 years ago
|
||
Comment on attachment 264417 [details] [diff] [review]
remove dead code
Nelson, this function was never in nss.def . My patch does not remove it from nss.def, only from certhtml.c .
Attachment #264417 -
Flags: review- → review?
Comment 5•18 years ago
|
||
Comment on attachment 264417 [details] [diff] [review]
remove dead code
Sorry, I see you even mentioned that it's not in nss.def in comment 0. It's been a very long day. :(
Attachment #264417 -
Flags: review? → review+
Assignee | ||
Comment 6•18 years ago
|
||
Thanks, Nelson. Actually I also forgot to remove it from the header. Please review.
Attachment #264436 -
Flags: superreview?(rrelyea)
Attachment #264436 -
Flags: review?(nelson)
Assignee | ||
Comment 7•18 years ago
|
||
Bob,
Looks like we aren't using gatherStrings either. So that should be deleted as well. I will submit a consolidated patch.
I found this because I'm going through Slavo's coverage data and looking at areas with low test coverage, and dead code that's compiled in is showing up.
Assignee | ||
Comment 8•18 years ago
|
||
3rd time should be the charm ;)
Attachment #264436 -
Attachment is obsolete: true
Attachment #264437 -
Flags: superreview?(rrelyea)
Attachment #264437 -
Flags: review?(nelson)
Attachment #264436 -
Flags: superreview?(rrelyea)
Attachment #264436 -
Flags: review?(nelson)
Updated•18 years ago
|
Attachment #264437 -
Flags: review?(nelson) → review+
Comment 9•18 years ago
|
||
Comment on attachment 264437 [details] [diff] [review]
also remove gatherStrings
r+ = rrelyea
Attachment #264437 -
Flags: superreview?(rrelyea) → superreview+
Assignee | ||
Comment 10•18 years ago
|
||
Checked in to the trunk :
Checking in cert.h;
/cvsroot/mozilla/security/nss/lib/certdb/cert.h,v <-- cert.h
new revision: 1.56; previous revision: 1.55
done
Checking in certhtml.c;
/cvsroot/mozilla/security/nss/lib/certhigh/certhtml.c,v <-- certhtml.c
new revision: 1.8; previous revision: 1.7
done
And to the 3.11 branch :
Checking in certdb/cert.h;
/cvsroot/mozilla/security/nss/lib/certdb/cert.h,v <-- cert.h
new revision: 1.53.28.2; previous revision: 1.53.28.1
done
Checking in certhigh/certhtml.c;
/cvsroot/mozilla/security/nss/lib/certhigh/certhtml.c,v <-- certhtml.c
new revision: 1.6.2.1; previous revision: 1.6
done
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Updated•18 years ago
|
Target Milestone: --- → 3.11.7
You need to log in
before you can comment on or make changes to this bug.
Description
•