Closed
Bug 451258
Opened 18 years ago
Closed 18 years ago
Unused var in customizeCharset.js
Categories
(Toolkit :: Preferences, defect)
Toolkit
Preferences
Tracking
()
RESOLVED
FIXED
mozilla1.9.1b1
People
(Reporter: stefanh, Assigned: stefanh)
Details
Attachments
(1 file, 1 obsolete file)
|
823 bytes,
patch
|
Gavin
:
review+
|
Details | Diff | 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)
| Assignee | ||
Comment 1•18 years ago
|
||
( The joy of forking )
Updated•18 years ago
|
Attachment #334569 -
Flags: review?(gavin.sharp) → review+
| Assignee | ||
Comment 2•18 years ago
|
||
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.
| Assignee | ||
Comment 4•18 years ago
|
||
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.
| Assignee | ||
Comment 5•18 years ago
|
||
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)
| Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
Updated•18 years ago
|
Attachment #334906 -
Flags: review?(gavin.sharp) → review+
| Assignee | ||
Comment 6•18 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1
| Assignee | ||
Updated•18 years ago
|
Target Milestone: mozilla1.9.1 → mozilla1.9.1b1
You need to log in
before you can comment on or make changes to this bug.
Description
•