Remove unused code from msgMapiHook.cpp
Categories
(MailNews Core :: Simple MAPI, defect)
Tracking
(Not tracked)
People
(Reporter: just, Assigned: jorgk-bmo)
Details
Attachments
(2 files, 2 obsolete files)
Assignee | ||
Comment 2•7 years ago
|
||
Updated•7 years ago
|
Comment 4•6 years ago
|
||
At least then the comment mentioned by :aceman should be edited as well?
Assignee | ||
Comment 5•6 years ago
|
||
Mike, what do you make of this nonsense? Spinning the event loop and blocking the app is never a good idea. Should we take the patch and remove the dead code ... and fix the comment?
Assignee | ||
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
Assignee | ||
Comment 8•6 years ago
|
||
I'm hijacking this bug.
Aceman, you'll hate this, but you can be my reviewer ;-) - You'll get support from some people providing feedback.
Mike, can you test this patch and see that it doesn't have negative side effects.
Kai, the PR_C*
calls are NSPR, yes? Why on earth were those necessary? The net effect of the code is that m_done
was being set that no one ever looked at anyway, right? Am I missing something?
There is plenty of send listener code in nsMsgCompose.cpp, but this appears to be the only use of send listener code for nsIMsgComposeParams.
A less drastic patch would be to leave that unused functionality in place, in case some add-on uses it. I'll add that, too.
Assignee | ||
Comment 9•6 years ago
|
||
OK, this only changes MAPI code. As a peer I have the right to pick a non-peer reviewer ;-) - This can be Mike since no "mainstream" TB code is affected.
Kai, could you also take a glance at this please to check the removal of the NSPR stuff.
Assignee | ||
Comment 10•6 years ago
|
||
Oops, sorry, forgot to fix that comment we talked about. Sorry about the noise. Maybe we don't go with (v2), so I didn't update that.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 11•6 years ago
|
||
OK, the funny code got introduced in bug 108275 attachment 147428 [details] [diff] [review]. They really shot themselves in the foot by adding code that never ran.
Further research shows that the send listener will be used in bug 547027 attachment 791889 [details] [diff] [review], so let's all head over there and get that patch landed :-)
Description
•