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)

defect

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: dholbert, Assigned: dholbert)

Details

Attachments

(1 file, 1 obsolete file)

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.
Attached patch fix (obsolete) — Splinter Review
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)
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)
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)
Summary: Drop unused forward-declarations and includes in layout/forms/nsI* → Drop unused forward-declarations and includes in layout/forms/nsI*Frame.h
Attachment #8360445 - Flags: review?(matspal) → review+
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
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.

Attachment

General

Created:
Updated:
Size: