mFont variable in nsWindow write-only

RESOLVED FIXED

Status

()

Core
Widget: Win32
RESOLVED FIXED
14 years ago
10 years ago

People

(Reporter: Biesinger, Unassigned)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

mFont is only ever written to, in SetFont:
NS_METHOD nsWindow::SetFont(const nsFont &aFont)
{
  // Cache Font for owner draw
  if (mFont == nsnull) {
    mFont = new nsFont(aFont);
  } else {
    *mFont  = aFont;
  }

Other than this, it's not used. so it looks like it can be eliminated.
mFont no longer seems to exist in nsWindow
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.