Closed
Bug 836899
Opened 12 years ago
Closed 12 years ago
nsBlockReflowState constructor's "aMetrics" parameter is unused
Categories
(Core :: Layout: Block and Inline, defect)
Core
Layout: Block and Inline
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
Attachments
(1 file)
(deleted),
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
nsBlockReflowState's constructor takes a parameter "const nsHTMLReflowMetrics& aMetrics", but it never uses it. We should just drop that parameter.
Assignee | ||
Comment 1•12 years ago
|
||
It's been unused since the reflow branch landed, actually. :) It was used in: http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/layout/generic/nsBlockReflowState.cpp&rev=3.516 ...but not in: http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/layout/generic/nsBlockReflowState.cpp&rev=3.517 And that commit was the reflow branch.
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #708774 -
Flags: review?(dbaron)
Updated•12 years ago
|
Attachment #708774 -
Flags: review?(dbaron) → review+
Assignee | ||
Comment 3•12 years ago
|
||
I also removed a redundant assignment in that constructor, while I was in the neighborhood: mPresContext = aPresContext; That assignment is already done in the constructor's init list, a bit higher up. Pushed: https://hg.mozilla.org/integration/mozilla-inbound/rev/0f306bf2d17d
Flags: in-testsuite-
Comment 4•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/0f306bf2d17d
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in
before you can comment on or make changes to this bug.
Description
•