Closed Bug 1618960 Opened 4 years ago Closed 4 years ago

Redundant function MsgGetHdrsFromKeys() in nsMsgUtils

Categories

(Thunderbird :: General, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 75.0

People

(Reporter: benc, Assigned: benc)

Details

Attachments

(1 file)

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).

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)

Attachment #9130899 - Flags: review?(mkmelin+mozilla)
Comment on attachment 9130899 [details] [diff] [review]
1618960-remove-MsgGetHdrsFromKeys-1.patch

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

LGTM, r=mkmelin
Attachment #9130899 - Flags: review?(mkmelin+mozilla) → review+
Target Milestone: --- → Thunderbird 75.0

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/bf815c43a45b
Remove redundant MsgGetHdrsFromKeys() in nsMsgUtils. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: