Closed Bug 451258 Opened 18 years ago Closed 18 years ago

Unused var in customizeCharset.js

Categories

(Toolkit :: Preferences, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla1.9.1b1

People

(Reporter: stefanh, Assigned: stefanh)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Remove the var (obsolete) — Splinter Review
Really minor, but I just happened to have a patch So, I found an unused var in suite/common/pref/pref-languages.js - I MXR:ed for it and noted that there where 4 files with this unused variable... One file is now removed, the 2 files in comm-central are being re-worked, so soon it's only the toolkit one left :-)
Attachment #334569 - Flags: review?(gavin.sharp)
( The joy of forking )
Attachment #334569 - Flags: review?(gavin.sharp) → review+
Thanks. I'll land this after the freeze.
Comment on attachment 334569 [details] [diff] [review] Remove the var > function RemoveActiveCharset() > { > var listbox = document.getElementById('active_charsets'); > var nextNode = null; > var numSelected = listbox.selectedItems.length; >- var deleted_all = false; > > var numSelectedItems = listbox.selectedItems.length; > for (count = 0; count < numSelectedItems; count ++) { > listbox.removeChild(listbox.selectedItems[0]); > } > > listbox.clearSelection(); - numSelected and nextNode are not used either. - count is not declared.
Yeah, thanks. You actually get a warning in the error console from the undeclared var. The function was changed for 3 years ago (bug 301742), the unused vars etc have been there since then. Anyway, I'll fix that in a few days.
OK, so this turns out that we're fixing a "real" bug here... Thanks to Aiko for catching this.
Attachment #334569 - Attachment is obsolete: true
Attachment #334906 - Flags: review?(gavin.sharp)
Status: NEW → ASSIGNED
Attachment #334906 - Flags: review?(gavin.sharp) → review+
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1
Target Milestone: mozilla1.9.1 → mozilla1.9.1b1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: