Open Bug 1692919 Opened 3 years ago Updated 2 years ago

Replace nsIArray/nsIMutableArray with Array<T> in Thunderbird code

Categories

(MailNews Core :: General, task)

Tracking

(thunderbird_esr78 wontfix)

ASSIGNED
87 Branch
Tracking Status
thunderbird_esr78 --- wontfix

People

(Reporter: benc, Assigned: benc)

References

Details

(Keywords: leave-open)

Attachments

(7 files)

Bug 1583030 removed nsIArray use from the xpidl interfaces, but there are still a few internal uses we could ditch. So this is a catch-all bug for that.

Tidy up some cruft left over from Bug 1583030.

Assignee: nobody → benc
Attachment #9203307 - Flags: review?(mkmelin+mozilla)
Attachment #9203307 - Flags: review?(mkmelin+mozilla) → review+
Status: NEW → ASSIGNED
Target Milestone: --- → 87 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/ad9236284ff6
Remove leftover MsgGetHeadersFromKeys2() helper (added for Bug 1583030). r=mkmelin

Depends on: 1685484

Also strips out nsIMutableArray use in nsMsgDatabase.

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/0710e3773fc4
Reduce nsMsgKey lookups in nsMsgDatabase::ApplyRetentionSettings(). r=mkmelin
https://hg.mozilla.org/comm-central/rev/3e726d4ed730
Remove leftover nsIArray helper BuildIdsAndKeyArray2() in nsImapMailFolder. r=mkmelin

(In reply to Ben Campbell from comment #6)

Created attachment 9220282 [details]
Bug 1692919 - Remove a bunch of obsolete nsIArray-related includes. r?mkmelin

Depends on D114315

That's a complete lie ;-) It's a stand-alone patch, I just didn't realise that phab assumed that stacked-up changesets were dependent upon each other. Not an unreasonable assumption, so I'll be more careful in future!

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/6b6e447856af
Remove a bunch of obsolete nsIArray-related includes. r=mkmelin

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/04b86501fca6
Remove nsIMutableArray use in nsMsgDBView. r=mkmelin

See Also: → 1718862

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/e1d8b83f18f0
Remove obsolete MsgHdrsToTArray() from nsMsgUtils. r=mkmelin

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/2edb175ab6ea
Tidy away some leftover nsIMutableArray cruft. r=mkmelin

Can we close this now?

No... there are still a few tricky ones to remove:

  • There are a bunch which are params to nsIWindowWatcher.openWindow(), and I don't think there's a non-nsIArray alternative. So those probably stay as they are.
  • nsAbOutlookDirectory, nsAbOSXDirectory and nsAbDirProperty use nsIMutableArray to deal with awkwardness in dealing with cards and mailinglists. Not sure what's involved here.
  • nsMsgCompUtils.cpp uses nsIArray to handle heterogeneous list of embedded objects. Don't know what to do with this one. Other than sitting down to go through the message composition code line by line to understand it properly :-)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: