Closed Bug 326883 Opened 19 years ago Closed 18 years ago

Get rid of unused nsFormControlFrame methods

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sharparrow1, Assigned: sharparrow1)

Details

Attachments

(1 file)

GetDesiredSize, GetWidgetSize, mWidgetSize, GetWidgetInitData, SetClickPoint, mLastClickPoint, GetScrollbarWidth, ControlChanged, and EnterPressed are unused; and probably HandleEvent is unneeded.

Also, the class declarations can go, and NS_FORMSIZE_NOTSET, and the includes for nsFormControlHelper.h, nsPresContext.h, nsIWidget.h, nsCOMPtr.h.

It seems like this stuff just collects.
The three-argument form of GetDesiredSize is used.
Attached patch PatchSplinter Review
Attachment #211939 - Flags: review?(roc)
Comment on attachment 211939 [details] [diff] [review]
Patch

yes, yes it does
Attachment #211939 - Flags: superreview+
Attachment #211939 - Flags: review?(roc)
Attachment #211939 - Flags: review+
Checked in.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Oh, a dream comes true, removing the debug stuff from form controls will probably shrink the files by 1/3.

http://lxr.mozilla.org/seamonkey/search?string=REFLOW_DEBUG_MSG most of the reflow messages are anyway covered by the frame reflow debug mechanism (http://www.mozilla.org/newlayout/doc/frame_reflow_debug.html)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: