Closed
Bug 510037
Opened 15 years ago
Closed 14 years ago
Remove obsolete widget events
Categories
(Core :: Widget, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: robarnold, Assigned: robarnold)
Details
Attachments
(2 files)
7.85 KB,
patch
|
roc
:
review+
smaug
:
review+
|
Details | Diff | Splinter Review |
9.57 KB,
patch
|
jimm
:
review+
|
Details | Diff | Splinter Review |
They are not used anymore; I've checked with dbaron, smaug and mxr.
Assignee | ||
Comment 1•15 years ago
|
||
Upon further review, nsMenuEvent can also be removed.
Assignee | ||
Comment 2•14 years ago
|
||
Renaming the bug since I've now found more code to remove and it seems easier to post multiple small patches here than scatter them across many bugs.
Summary: Remove NS_CONTROL_CHANGE and NS_MENU_SELECT → Remove obsolete widget events
Assignee | ||
Comment 3•14 years ago
|
||
Attachment #442564 -
Flags: review?(roc)
Attachment #442564 -
Flags: review?(Olli.Pettay)
Assignee | ||
Comment 4•14 years ago
|
||
This patch removes more dead code from nsWindow, in particular obsolete code related to native controls.
Attachment #442565 -
Flags: review?(jmathies)
Attachment #442564 -
Flags: review?(roc) → review+
Assignee | ||
Comment 5•14 years ago
|
||
Other events/code that can go: NS_WILL_PAINT - only used by nsWindowGfx and handled as NS_PAINT NS_TABCHANGE NS_OS_TOOLBAR and nsWebShellWindow::Toolbar NS_DISPLAYCHANGED - only dispatched on NT systems but the handler appears to do nothing NS_SCROLLBAR_*
Assignee | ||
Comment 6•14 years ago
|
||
hmm, NS_WILL_PAINT is actually used it seems. I should have looked harder.
Comment 7•14 years ago
|
||
Comment on attachment 442564 [details] [diff] [review] Remove NS_CONTROL_CHANGE and NS_MENU_SELECT You need to remove some code also here http://mxr.mozilla.org/mozilla-central/source/widget/src/photon/nsWidget.cpp#662
Attachment #442564 -
Flags: review?(Olli.Pettay) → review+
Comment 8•14 years ago
|
||
Comment on attachment 442565 [details] [diff] [review] Remove unused fields and message handlers from nsWindow builds fine. I tried tracing some of this back via Bonsai, most of the code was checked in back when the cvs repo was created.
Attachment #442565 -
Flags: review?(jmathies) → review+
Assignee | ||
Comment 9•14 years ago
|
||
(In reply to comment #7) > (From update of attachment 442564 [details] [diff] [review]) > You need to remove some code also here > http://mxr.mozilla.org/mozilla-central/source/widget/src/photon/nsWidget.cpp#662 This is being removed in bug 563462.
Assignee | ||
Comment 10•14 years ago
|
||
Pushed to mozilla-central: http://hg.mozilla.org/mozilla-central/rev/dd135aa06b4e http://hg.mozilla.org/mozilla-central/rev/44d9cb4f5796
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•