summaryrefslogtreecommitdiff
path: root/vcl/coretext
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-04-06 13:57:08 +0300
committerTor Lillqvist <tml@iki.fi>2013-04-07 01:13:33 +0300
commita9c1586fc05e4c286a8fb6e651d423051eaf63ef (patch)
tree21e043dc2efb9f44c824e8945b4be4bc1594f4ee /vcl/coretext
parent4478145e7be87be9df6b38f44b5cf3ad44cf03a2 (diff)
mpChars2Glyphs is unused
Change-Id: Ie98d242777cec92db6512f53fe102ecc65dc469c
Diffstat (limited to 'vcl/coretext')
-rw-r--r--vcl/coretext/salcoretextlayout.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/vcl/coretext/salcoretextlayout.cxx b/vcl/coretext/salcoretextlayout.cxx
index 8aa3760e5f35..2cbe46a0e5df 100644
--- a/vcl/coretext/salcoretextlayout.cxx
+++ b/vcl/coretext/salcoretextlayout.cxx
@@ -66,7 +66,6 @@ private:
mutable CGGlyph* mpGlyphs; // glyphs
mutable int* mpCharWidths; // map relative charpos to charwidth
- mutable int* mpChars2Glyphs; // map relative charpos to absolute glyphpos
mutable int* mpGlyphs2Chars; // map absolute glyphpos to absolute charpos
mutable int* mpGlyphAdvances; // glyph widths for the justified layout
@@ -94,7 +93,6 @@ CoreTextLayout::CoreTextLayout(QuartzSalGraphics* graphics, CoreTextStyleInfo* s
mnGlyphCount(-1),
mpGlyphs(NULL),
mpCharWidths(NULL),
- mpChars2Glyphs(NULL),
mpGlyphs2Chars(NULL),
mpGlyphAdvances(NULL),
mpGlyphPositions(NULL),
@@ -134,10 +132,6 @@ void CoreTextLayout::InvalidateMeasurements()
delete[] mpGlyphs;
mpGlyphs = NULL;
}
- if( mpChars2Glyphs ) {
- delete[] mpChars2Glyphs;
- mpChars2Glyphs = NULL;
- }
if( mpGlyphs2Chars ) {
delete[] mpGlyphs2Chars;
mpGlyphs2Chars = NULL;
@@ -488,10 +482,8 @@ bool CoreTextLayout::InitGIA( ImplLayoutArgs& rArgs ) const
mpGlyphs = new CGGlyph[ mnGlyphCount ];
mpCharWidths = new int[ mnCharCount ];
- mpChars2Glyphs = new int[ mnCharCount ];
for( int i = 0; i < mnCharCount; ++i) {
mpCharWidths[i] = 0.0;
- mpChars2Glyphs[i] = -1;
}
mpGlyphs2Chars = new int[ mnGlyphCount ];
mpGlyphAdvances = new int[ mnGlyphCount ];
@@ -533,7 +525,6 @@ bool CoreTextLayout::InitGIA( ImplLayoutArgs& rArgs ) const
CFIndex k = indices[ j ];
mpGlyphs2Chars[p] = k;
assert( k < mnCharCount );
- mpChars2Glyphs[k] = p;
if ( j < nb_glyphs - 1 )
{