Closed Bug 1004593 Opened 10 years ago Closed 10 years ago

nsTraceRefCnt::Startup() does nothing and isn't called anywhere

Categories

(Core :: XPCOM, defect)

28 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: mccr8, Assigned: mccr8)

Details

Attachments

(1 file)

That's confusing if you put something in there and expect it to do something.  The "startup" it does seems to all be in InitTraceLog, which is called on AddRef and Release.
This would also be a good bug to delete the comment: " I hope to turn this on for everybody once we hit it a little less."

At some point, the thing the comment refers to was only enabled for dbaron, but now it is in all debug builds.
Comment on attachment 8465829 [details] [diff] [review]
Remove the unused nsTraceRefCnt::Startup().

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

I guess this was there for symmetry, but there doesn't seem to be much point to symmetry if the symmetric function isn't called...
Attachment #8465829 - Flags: review?(nfroyd) → review+
https://hg.mozilla.org/mozilla-central/rev/5b1d8268ae17
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: