Closed
Bug 454483
Opened 16 years ago
Closed 16 years ago
Clean up unused variables in gfx/
Categories
(Core Graveyard :: GFX, defect)
Core Graveyard
GFX
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.9.1b1
People
(Reporter: Swatinem, Assigned: Swatinem)
Details
Attachments
(1 file, 1 obsolete file)
3.42 KB,
patch
|
Details | Diff | Splinter Review |
Removes some unused vars.
Attachment #337755 -
Flags: review?(vladimir)
Comment on attachment 337755 [details] [diff] [review] patch This looks ok, except for: >diff -r 33f55a9a82ed gfx/thebes/src/gfxFontUtils.cpp >--- a/gfx/thebes/src/gfxFontUtils.cpp Tue Sep 02 17:24:46 2008 +0200 >+++ b/gfx/thebes/src/gfxFontUtils.cpp Tue Sep 02 17:59:58 2008 +0200 >@@ -295,7 +295,6 @@ > if (idRangeOffset == 0) { > aCharacterMap.SetRange(startCount, endCount); > } else { >- const PRUint16 idDelta = ReadShortAt16(idDeltas, i); > for (PRUint32 c = startCount; c <= endCount; ++c) { > if (c == 0xFFFF) > break; >@@ -366,7 +365,6 @@ > EncodingIDUCS4ForMicrosoftPlatform = 10 > }; > >- PRUint16 version = ReadShortAt(aBuf, OffsetVersion); > PRUint16 numTables = ReadShortAt(aBuf, OffsetNumTables); > > // save the format and offset we want here This is sort of self-documenting code here, so I would just comment out those two lines instead of removing them entirely, and add another comment line saying "unused" or something.
Attachment #337755 -
Flags: review?(vladimir) → review+
Assignee | ||
Comment 2•16 years ago
|
||
(In reply to comment #1) > (From update of attachment 337755 [details] [diff] [review]) > This is sort of self-documenting code here, so I would just comment out those > two lines instead of removing them entirely, and add another comment line > saying "unused" or something. done.
Attachment #337755 -
Attachment is obsolete: true
Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Comment 3•16 years ago
|
||
Comment on attachment 337767 [details] [diff] [review] v2 [Checkin: Comment 3] http://hg.mozilla.org/mozilla-central/rev/415f1f0f5eb4 with my "extended" nit fixes over yours.
Attachment #337767 -
Attachment description: v2 → v2
[Checkin: Comment 3]
Updated•16 years ago
|
Severity: normal → minor
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite-
Keywords: checkin-needed
OS: Linux → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b1
Updated•16 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•