Closed Bug 299575 Opened 19 years ago Closed 19 years ago

nsDocumentViewer.cpp:1329 unused variable `PRBool updateHistory'

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
trivial

Tracking

()

RESOLVED FIXED

People

(Reporter: bastiaan, Assigned: bastiaan)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file, 1 obsolete file)

I'm guessing the original author created the variable but then figured it would
be easier to check mSHEntry directly.
Attachment #188139 - Flags: superreview?(bryner)
Attachment #188139 - Flags: review?(bryner)
Comment on attachment 188139 [details] [diff] [review]
removes unused var, adds null check

This whole block is |if (mSHEntry)|, so I don't see a need to check it again.
r+sr=me on removing the unused variable though.
Attachment #188139 - Flags: superreview?(bryner)
Attachment #188139 - Flags: superreview+
Attachment #188139 - Flags: review?(bryner)
Attachment #188139 - Flags: review+
(In reply to comment #2)
> This whole block is |if (mSHEntry)|, so I don't see a need to check it again.

Indeed, I overlooked the indentation.
Attachment #188139 - Attachment is obsolete: true
Blocks: buildwarning
Comment on attachment 188150 [details] [diff] [review]
remove null check

citing r+sr=bryner
Attachment #188150 - Flags: review+
Attachment #188150 - Flags: approval1.8b4?
Attachment #188150 - Flags: approval1.8b4? → approval1.8b4+
Checked in by timeless (2005-07-13 11:23).
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: