[Libreoffice-commits] .: vcl/win

Caolán McNamara caolan at kemper.freedesktop.org
Thu Dec 9 13:05:51 PST 2010


 vcl/win/source/gdi/winlayout.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 42ee24dd1cfa2cead79268c42a40ada41105ebe3
Author: Kevin Hunter <hunteke at earlham.edu>
Date:   Thu Dec 9 12:35:11 2010 -0500

    Remove unused variables.

diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx
index 0be43f4..724b630 100644
--- a/vcl/win/source/gdi/winlayout.cxx
+++ b/vcl/win/source/gdi/winlayout.cxx
@@ -2091,7 +2091,7 @@ void UniscribeLayout::DropGlyph( int nStartx8 )
             if( GetItemSubrange( *pVI, nStart, nDummy ) )
                 break;
         DBG_ASSERT( nStart <= mnGlyphCount, "USPLayout::DropG overflow" );
-        int nOffset = 0;
+
         int j = pVI->mnMinGlyphPos;
         while (mpOutGlyphs[j] == DROPPED_OUTGLYPH) j++;
         if (j == nStart)
@@ -2138,7 +2138,6 @@ void UniscribeLayout::Simplify( bool /*bIsBase*/ )
     }
 
     // remove the dropped glyphs
-    const int* pGlyphWidths = mpJustifications ? mpJustifications : mpGlyphAdvances;
     for( int nItem = 0; nItem < mnItemCount; ++nItem )
     {
         VisualItem& rVI = mpVisualItems[ nItem ];
@@ -2159,7 +2158,6 @@ void UniscribeLayout::Simplify( bool /*bIsBase*/ )
         i = nMinGlyphPos;
         while( (mpOutGlyphs[i] == cDroppedGlyph) && (i < nEndGlyphPos) )
         {
-            //rVI.mnXOffset += pGlyphWidths[ i ];
             rVI.mnMinGlyphPos = ++i;
         }
 
@@ -2723,7 +2721,6 @@ void UniscribeLayout::Justify( long nNewWidth )
 
     // justify stretched script items
     long nXOffset = 0;
-    SCRIPT_CACHE& rScriptCache = GetScriptCache();
     for( int nItem = 0; nItem < mnItemCount; ++nItem )
     {
         VisualItem& rVisualItem = mpVisualItems[ nItem ];


More information about the Libreoffice-commits mailing list