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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

Attachments

(1 file)

nsBlockReflowState's constructor takes a parameter "const nsHTMLReflowMetrics& aMetrics", but it never uses it. We should just drop that parameter.
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.
Depends on: reflow-refactor
OS: Linux → All
Hardware: x86_64 → All
Attached patch fixSplinter Review
Attachment #708774 - Flags: review?(dbaron)
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-
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.

Attachment

General

Created:
Updated:
Size: