Closed Bug 433470 Opened 16 years ago Closed 16 years ago

Unnecessary array filling in mailCommands.js deleteAllInFolder

Categories

(Thunderbird :: Mail Window Front End, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3

People

(Reporter: standard8, Assigned: standard8)

Details

Attachments

(1 file)

Attached patch The fixSplinter Review
I've not found anything to go with this yet, and its been sitting in my tree for a week.

In mailCommands.js/deleteAllInFolder, we're going around an iterator filling up an nsISupportsArray, then we go round a loop (in the same order) acting on the elements.

I think this is just code left over from when I changed the subFolders function.
Attachment #320676 - Flags: review?(mkmelin+mozilla)
Comment on attachment 320676 [details] [diff] [review]
The fix

Nit: stray space after folder.propagateDelete(iter.getNext(), true, msgWindow); 

Other that that, looks good. r=mkmelin
Attachment #320676 - Flags: review?(mkmelin+mozilla) → review+
Target Milestone: --- → Thunderbird 3
Patch checked in (with nit followed up).
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: