Bug 781494 - Remove dead code from nsGlyphTable::ElementAt. r=karlt
authorFrédéric Wang <fred.wang@free.fr>
Fri, 10 Aug 2012 11:29:59 -0400
changeset 102119 343e745e40166cbe5ff5e990bc8fbff6109a8d5b
parent 102118 54568120778aabb3757c2425a4e1134165df092b
child 102120 b3b06948b953d58f53ccd1f05dba37849e1d678c
push id23264
push userryanvm@gmail.com
push dateSun, 12 Aug 2012 02:33:48 +0000
treeherdermozilla-central@9d086534903a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt
bugs781494
milestone17.0a1
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 781494 - Remove dead code from nsGlyphTable::ElementAt. r=karlt
layout/mathml/nsMathMLChar.cpp
--- a/layout/mathml/nsMathMLChar.cpp
+++ b/layout/mathml/nsMathMLChar.cpp
@@ -301,36 +301,16 @@ nsGlyphTable::ElementAt(nsPresContext* a
       PRUnichar code = value[i];
       ++i;
       buffer.Append(code);
       // see if we are at the beginning of a child char
       if (code == kSpaceCh) {
         // reset the annotation indicator to be 0 for the next code point
         j = -1;
       }
-#if 0 // If we want this then the nsGlyphTableList must be declared
-      // or the UnicodeTable could be made a global.
-      // See if this code point is an *indirect reference* to the Unicode
-      // table and lookup the code there.
-      else if (code == PRUnichar(0xF8FF) && gGlyphTableList &&
-               this != &gGlyphTableList->mUnicodeTable) {
-        code = gGlyphTableList->mUnicodeTable.
-          ElementAt(aPresContext, aChar, aPosition).code;
-      }
-      // see if this code point is a *direct reference* to
-      // the Unicode table, and lookup the [TLMBRG1-9] position for code.
-      else if ((i+1 < length) && (value[i] == PRUnichar('.'))) {
-        ++i;
-        // Need to implement this if we want it:
-        // Set (new) code from the value[i] position for (current) code.
-        if (1)
-          return kNullGlyph;
-        ++i;
-      }
-#endif
       // Read the next word if we have a non-BMP character.
       if (i < length && NS_IS_HIGH_SURROGATE(code)) {
         code = value[i];
         ++i;
       } else {
         code = PRUnichar('\0');
       }
       buffer.Append(code);