Closed Bug 959948 Opened 6 years ago Closed 6 years ago

Drop unused forward-declarations and includes in layout/forms/nsI*Frame.h


(Core :: Layout: Form Controls, defect, P4)






(Reporter: dholbert, Assigned: dholbert)



(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 (" 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:

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:
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
You need to log in before you can comment on or make changes to this bug.