Closed Bug 445695 Opened 17 years ago Closed 14 years ago

nsMsgFilterAfterTheFact doesn't use m_searchHits

Categories

(MailNews Core :: Filters, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: neil, Assigned: neil)

References

Details

Attachments

(1 file, 1 obsolete file)

Well, it only ever calls Add, GetSize and RemoveAll but you don't need an extra nsMsgKeyArray when you already have an array of the nsMsgDBHdr objects. I also want to rename m_searchHitHdrs to m_searchHits and make it an nsCOMArray.
(In reply to comment #0) > I also want to rename m_searchHitHdrs to m_searchHits and make it an nsCOMArray. Oh, I can't do that, it gets passed to DeleteMessages.
Attached patch WIP (obsolete) — Splinter Review
So, since getting the length of an nsIArray isn't cheap (it's worse than an nsISupportsArray...) I replaced the key array with a hit count member.
Assignee: nobody → neil
Status: NEW → ASSIGNED
Product: Core → MailNews Core
Whiteboard: [has draft patch]
Comment on attachment 329976 [details] [diff] [review] WIP Can't remember why I wrote this but the basic idea hasn't bitrotted even if the patch itself has.
Attachment #329976 - Flags: review?(kent)
Attachment #329976 - Attachment is obsolete: true
Attachment #329976 - Flags: review?(kent)
Comment on attachment 529123 [details] [diff] [review] Un-bitrotted version of original patch Review of attachment 529123 [details] [diff] [review]: While m_searchHits was not used at the time the patch was written, subsequent changes added a use (to set the processing flag for move) which is necessary to communicate information about moves to the folder objects. So this patch (and its justification) are no longer valid. Is there any reason still to pursue this?
Attachment #529123 - Flags: review-
Fair enough.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
Whiteboard: [has draft patch]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: