Closed Bug 486081 Opened 15 years ago Closed 13 years ago

nsTime should be removed

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla8

People

(Reporter: roc, Assigned: oceanl)

References

Details

Attachments

(1 file, 2 obsolete files)

http://mxr.mozilla.org/mozilla-central/search?string=nstime[^A-Za-z]&regexp=on&find=&findi=&filter=^[^\0]*%24&hitlimit=&tree=mozilla-central

It looks like the only actual uses of this is some code that's #if defined(DEBUG_waterson) || defined(DEBUG_hyatt). That should just be deleted.
Whiteboard: [good first bug]
Assignee: nobody → mardeg
Status: NEW → ASSIGNED
patch
Comment on attachment 392638 [details] [diff] [review]
patch that removes nsTime.h and it's related lines

Great, thanks!
Attachment #392638 - Flags: review+
In future you should request review for your patches, from a particular person. If you ask around someone will tell you who, if you don't know.
Keywords: checkin-needed
Whiteboard: [good first bug] → [needs landing]
http://tinderbox.mozilla.org/showlog.cgi?log=Thunderbird/1249440407.1249442340.13431.gz

Thunderbird still uses nsTime, apparently, so I backed this out :-(.

I wonder who else might still be using it...
Keywords: checkin-needed
Whiteboard: [needs landing]
Assignee: mardeg → oceanl
(In reply to comment #5)
> Use http://mxr.mozilla.org/comm-central/, which includes both mozilla-central
> and comm-central:

Fwiw, currently it's c-c + m-1.9.1 (+ others).

***

http://mxr.mozilla.org/comm-central/search?string=nsTime&case=on&find=%2Fmailnews%2F
Can you file a MailNews Core bug about this? (assuming it's to be "fixed".)
Mailnews should import the nsTime code if it wishes to continue using it.
Depends on: 508558
to make searching bugzilla easier, roc's backout is:
http://hg.mozilla.org/mozilla-central/rev/1f823d3b7fbf
"Backoug but 586081, mailnews still uses nsTime"
Mailnews is still working on getting rid of nsTime in bug 508558. But in the meantime, bug 435296 started using it in /modules/libpr0n/src/RasterImage.cpp:
http://mxr.mozilla.org/mozilla-central/search?string=nstime&find=RasterImage.cpp&tree=mozilla-central
Attached patch An rebased version (obsolete) — Splinter Review
Thunderbird doesn't seem to be using nsTime anymore so I plan on landing this.
Attachment #392638 - Attachment is obsolete: true
Attachment #546585 - Attachment is obsolete: true
http://hg.mozilla.org/mozilla-central/rev/3c155b728fe8
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: