Closed Bug 905300 Opened 11 years ago Closed 11 years ago

Remove dead code

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: jandem, Assigned: jandem)

Details

Attachments

(2 files)

Attached patch PatchSplinter Review
Yesterday I used gcov to generate code coverage data for the shell. This patch removes various functions that are unused.

It also removes some ScriptAnalysis bits and the analysis purge stuff. TypeCompartment::maybePurgeAnalysis had an early return so it was a no-op and with the TI rewrites (bug 804676 and others) we no longer need it.

 29 files changed, 20 insertions(+), 596 deletions(-)
Attachment #790360 - Flags: review?(bhackett1024)
Attachment #790360 - Flags: review?(bhackett1024) → review+
Attached patch Follow-up fixSplinter Review
The patch removed an item from the enum in Workers.h but I forgot to update the other index values.

(Any reasons we don't use the enum names instead of their values, to make this less error-prone?)
Attachment #790754 - Flags: review?(bent.mozilla)
https://hg.mozilla.org/mozilla-central/rev/8687c8000152
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Whiteboard: [leave open]
Ben, review ping..
Comment on attachment 790754 [details] [diff] [review]
Follow-up fix

No reply in > 10 days, let's try somebody else.
Attachment #790754 - Flags: review?(bent.mozilla) → review?(mrbkap)
Comment on attachment 790754 [details] [diff] [review]
Follow-up fix

Review of attachment 790754 [details] [diff] [review]:
-----------------------------------------------------------------

Sorry, somehow I didn't see this until today. Looks fine, thanks.
Attachment #790754 - Flags: review?(mrbkap) → review+
(In reply to Jan de Mooij [:jandem] from comment #2)
> (Any reasons we don't use the enum names instead of their values, to make
> this less error-prone?)

This sounds like a great idea, can we do a followup for that?
https://hg.mozilla.org/integration/mozilla-inbound/rev/1e4d9ad776aa

(In reply to ben turner [:bent] (needinfo? encouraged) from comment #7)
> This sounds like a great idea, can we do a followup for that?

OK, I will file a DOM bug for that.
Whiteboard: [leave open]
https://hg.mozilla.org/mozilla-central/rev/1e4d9ad776aa
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: