Redundant function MsgGetHdrsFromKeys() in nsMsgUtils
Categories
(Thunderbird :: General, task)
Tracking
(Not tracked)
People
(Reporter: benc, Assigned: benc)
Details
Attachments
(1 file)
5.11 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
mailnews/base/util/nsMsgUtils.cpp contains both MsgGetHdrsFromKeys() and MsgGetHeadersFromKeys() which do the same thing.
MsgGetHeadersFromKeys() is the more modern one - it takes in nsTArray<nsMsgKey>
instead of the old-style pointer+length param pair used by MsgGetHdrsFromKeys().
So MsgGetHdrsFromKeys() is for the chop. It's only used in a couple of places.
I've already got a patch - I'll post it as soon as I've got a try run.
Note also: MsgGetHeadersFromKeys() is due for a change, as part of the nsIArray
removal (Bug 1583030).
Assignee | ||
Comment 1•4 years ago
|
||
Try build looks good:
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=bc586f60d961ae233b36aa90581460fcc62225f0
(there are search test breakages, but unrelated to this and being addressed elsewhere)
Comment 2•4 years ago
|
||
Comment on attachment 9130899 [details] [diff] [review] 1618960-remove-MsgGetHdrsFromKeys-1.patch Review of attachment 9130899 [details] [diff] [review]: ----------------------------------------------------------------- LGTM, r=mkmelin
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/bf815c43a45b
Remove redundant MsgGetHdrsFromKeys() in nsMsgUtils. r=mkmelin
Description
•