Closed Bug 510037 Opened 15 years ago Closed 14 years ago

Remove obsolete widget events

Categories

(Core :: Widget, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: robarnold, Assigned: robarnold)

Details

Attachments

(2 files)

They are not used anymore; I've checked with dbaron, smaug and mxr.
Upon further review, nsMenuEvent can also be removed.
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
Attachment #442564 - Flags: review?(roc)
Attachment #442564 - Flags: review?(Olli.Pettay)
This patch removes more dead code from nsWindow, in particular obsolete code related to native controls.
Attachment #442565 - Flags: review?(jmathies)
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_*
hmm, NS_WILL_PAINT is actually used it seems. I should have looked harder.
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 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+
(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.
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.

Attachment

General

Created:
Updated:
Size: