Bug 571160: fix unused variable warning. r=jdaggett
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 10 Jun 2010 11:26:46 -0700
changeset 43478 2b619f9ca0bdcc0629461236fc09df0d54a33f8e
parent 43477 3675017ddaa10a7e34def3b0b656b1c19ddc6efa
child 43479 792cd3e8aa59b24c333f2c90f938beda361b3336
push id13728
push userdholbert@mozilla.com
push dateThu, 10 Jun 2010 18:27:12 +0000
treeherdermozilla-central@792cd3e8aa59 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdaggett
bugs571160
milestone1.9.3a6pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 571160: fix unused variable warning. r=jdaggett
gfx/thebes/src/gfxFontUtils.cpp
--- a/gfx/thebes/src/gfxFontUtils.cpp
+++ b/gfx/thebes/src/gfxFontUtils.cpp
@@ -430,17 +430,16 @@ gfxFontUtils::ReadCMAPTableFormat14(PRUi
             const PRUint32 numUVSMappings = ReadLongAt(aBuf, nonDefUVSOffset);
             NS_ENSURE_TRUE((tablelen - nonDefUVSOffset) /
                            SizeOfNonDefUVSTable >= numUVSMappings,
                            NS_ERROR_GFX_CMAP_MALFORMED);
             const PRUint8 *tables = aBuf + nonDefUVSOffset + 4;
             PRUint32 prevUnicode = 0;
             for (PRUint32 j = 0; j < numUVSMappings; j++, tables += SizeOfNonDefUVSTable) {
                 const PRUint32 unicodeValue = ReadUint24At(tables, NonDefUVSOffsetUnicodeValue);
-                const PRUint16 glyphID = ReadShortAt(tables, NonDefUVSOffsetGlyphID);
                 NS_ENSURE_TRUE((prevUnicode < unicodeValue || j == 0) &&
                                unicodeValue <= CMAP_MAX_CODEPOINT, 
                                NS_ERROR_GFX_CMAP_MALFORMED);
                 prevUnicode = unicodeValue;
             }
         }
     }