Closed
Bug 959948
Opened 10 years ago
Closed 10 years ago
Drop unused forward-declarations and includes in layout/forms/nsI*Frame.h
Categories
(Core :: Layout: Form Controls, defect, P4)
Core
Layout: Form Controls
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: dholbert, Assigned: dholbert)
Details
Attachments
(1 file, 1 obsolete file)
3.95 KB,
patch
|
MatsPalmgren_bugz
:
review+
|
Details | Diff | Splinter Review |
While skimming some layout/forms classes for bug 101019, I noticed that the various nsI[XYZ]Frame.h interfaces there all have some unused forward decls (and a few unused #includes). Filing this bug on dropping those.
Assignee | ||
Comment 1•10 years ago
|
||
I verified that none of these classes are mentioned in the .h files in question, and I also verified that I can still compile with this patch applied (which effectively should mean that it's correct).
Attachment #8360224 -
Flags: review?(matspal)
Assignee | ||
Comment 2•10 years ago
|
||
aside: I also noticed that the nsIComboboxControlFrame header-comment is blindly copied from nsIFormControlFrame, and as such, is 100% incorrect ("...is the common interface for frames of form controls...") :) This has been the case since that file was first added to CVS back in January 1999: http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/layout/forms/nsIComboboxControlFrame.h&rev=1.1&root=/cvsroot Tomorrow, I'll add a second patch here to make that comment slightly closer to reality.
Flags: needinfo?(dholbert)
Assignee | ||
Comment 3•10 years ago
|
||
Actually, I just folded that comment-fix into the existing patch.
Attachment #8360224 -
Attachment is obsolete: true
Attachment #8360224 -
Flags: review?(matspal)
Attachment #8360445 -
Flags: review?(matspal)
Flags: needinfo?(dholbert)
Assignee | ||
Updated•10 years ago
|
Summary: Drop unused forward-declarations and includes in layout/forms/nsI* → Drop unused forward-declarations and includes in layout/forms/nsI*Frame.h
Updated•10 years ago
|
Attachment #8360445 -
Flags: review?(matspal) → review+
Assignee | ||
Comment 4•10 years ago
|
||
Sanity-check try run, just in case we have some platform-specific file that implicitly depends on one of the decls/#includes that this patch removes: https://tbpl.mozilla.org/?tree=Try&rev=913fc369a8da
Assignee | ||
Comment 5•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/87fd5e4568d6
Flags: in-testsuite-
Comment 6•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/87fd5e4568d6
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
You need to log in
before you can comment on or make changes to this bug.
Description
•