Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi,

This patch removes some unused code from vcl module.

Thanks for your work,
Mònica

From ee979a16e42d858a8d5de35c186b73f84acf118b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=B2nica=20Ram=C3=ADrez=20Arceda?= <monica@probeta.net>
Date: Sun, 22 Apr 2012 12:28:54 +0200
Subject: [PATCH] Remove unused vcl methods.

Removed methods are:
  * SalGraphics::DrawBitmap(SalTwoRect const*, SalBitmap const&, unsigned int, OutputDevice const*)
  * SalGraphics::drawAlphaBitmap(SalTwoRect const&, SalBitmap const&, SalBitmap const&)
  * SalGraphics::drawPolyLine(basegfx::B2DPolygon const&, double, basegfx::B2DVector const&, 
basegfx::B2DLineJoin)
  * SalGraphics::drawPolyPolygon(basegfx::B2DPolyPolygon const&, double)
---
 unusedcode.easy                 |    4 ----
 vcl/inc/salgdi.hxx              |    4 ----
 vcl/source/gdi/salgdilayout.cxx |   34 ----------------------------------
 3 files changed, 0 insertions(+), 42 deletions(-)

diff --git a/unusedcode.easy b/unusedcode.easy
index b62d53a..ccb1daa 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -29,10 +29,6 @@ OutputDevice::LogicToPixel(PolyPolygon const&, MapMode const&) const
 OutputDevice::PixelToLogic(PolyPolygon const&, MapMode const&) const
 PopupMenu::SetSelectedEntry(unsigned short)
 PropBrwMgr::GetChildWindowId()
-SalGraphics::DrawBitmap(SalTwoRect const*, SalBitmap const&, unsigned int, OutputDevice const*)
-SalGraphics::drawAlphaBitmap(SalTwoRect const&, SalBitmap const&, SalBitmap const&)
-SalGraphics::drawPolyLine(basegfx::B2DPolygon const&, double, basegfx::B2DVector const&, 
basegfx::B2DLineJoin)
-SalGraphics::drawPolyPolygon(basegfx::B2DPolyPolygon const&, double)
 SanExtensionImpl::setCertExtn(com::sun::star::uno::Sequence<signed char>, 
com::sun::star::uno::Sequence<signed char>, unsigned char)
 SanExtensionImpl::setCertExtn(unsigned char*, unsigned int, unsigned char*, unsigned int, unsigned 
char)
 ScAddInAsyncs::Insert(ScAddInAsync* const&, unsigned short&)
diff --git a/vcl/inc/salgdi.hxx b/vcl/inc/salgdi.hxx
index e351ed3..6c99e46 100644
--- a/vcl/inc/salgdi.hxx
+++ b/vcl/inc/salgdi.hxx
@@ -405,10 +405,6 @@ public:
                                         const OutputDevice *pOutDev );
     void                    DrawBitmap( const SalTwoRect* pPosAry,
                                         const SalBitmap& rSalBitmap,
-                                        SalColor nTransparentColor,
-                                        const OutputDevice *pOutDev );
-    void                    DrawBitmap( const SalTwoRect* pPosAry,
-                                        const SalBitmap& rSalBitmap,
                                         const SalBitmap& rTransparentBitmap,
                                         const OutputDevice *pOutDev );
 
diff --git a/vcl/source/gdi/salgdilayout.cxx b/vcl/source/gdi/salgdilayout.cxx
index 2197905..d750264 100644
--- a/vcl/source/gdi/salgdilayout.cxx
+++ b/vcl/source/gdi/salgdilayout.cxx
@@ -91,14 +91,6 @@ SalGraphics::~SalGraphics()
 
 // ----------------------------------------------------------------------------
 
-bool SalGraphics::drawAlphaBitmap( const SalTwoRect&,
-    const SalBitmap&, const SalBitmap& )
-{
-    return false;
-}
-
-// ----------------------------------------------------------------------------
-
 void SalGraphics::mirror( long& x, const OutputDevice *pOutDev, bool bBack ) const
 {
     long w;
@@ -411,14 +403,6 @@ void    SalGraphics::DrawRect( long nX, long nY, long nWidth, long nHeight, 
cons
         mirror( nX, nWidth, pOutDev );
     drawRect( nX, nY, nWidth, nHeight );
 }
-bool SalGraphics::drawPolyLine(
-    const basegfx::B2DPolygon& /*rPolyPolygon*/,
-    double /*fTransparency*/,
-    const basegfx::B2DVector& /*rLineWidths*/,
-    basegfx::B2DLineJoin /*eLineJoin*/)
-{
-    return false;
-}
 
 void SalGraphics::DrawPolyLine( sal_uLong nPoints, const SalPoint* pPtAry, const OutputDevice 
*pOutDev )
 {
@@ -483,11 +467,6 @@ bool SalGraphics::DrawPolyPolygon( const ::basegfx::B2DPolyPolygon& 
i_rPolyPolyg
     return bRet;
 }
 
-bool SalGraphics::drawPolyPolygon( const ::basegfx::B2DPolyPolygon&, double /*fTransparency*/)
-{
-    return false;
-}
-
 sal_Bool SalGraphics::DrawPolyLineBezier( sal_uLong nPoints, const SalPoint* pPtAry, const 
sal_uInt8* pFlgAry, const OutputDevice* pOutDev )
 {
     sal_Bool bResult = sal_False;
@@ -600,19 +579,6 @@ void    SalGraphics::DrawBitmap( const SalTwoRect* pPosAry,
     else
         drawBitmap( pPosAry, rSalBitmap );
 }
-void    SalGraphics::DrawBitmap( const SalTwoRect* pPosAry,
-                                    const SalBitmap& rSalBitmap,
-                                    SalColor nTransparentColor, const OutputDevice *pOutDev )
-{
-    if( (m_nLayout & SAL_LAYOUT_BIDI_RTL) || (pOutDev && pOutDev->IsRTLEnabled()) )
-    {
-        SalTwoRect pPosAry2 = *pPosAry;
-        mirror( pPosAry2.mnDestX, pPosAry2.mnDestWidth, pOutDev );
-        drawBitmap( &pPosAry2, rSalBitmap, nTransparentColor );
-    }
-    else
-        drawBitmap( pPosAry, rSalBitmap, nTransparentColor );
-}
 void SalGraphics::DrawBitmap( const SalTwoRect* pPosAry,
                               const SalBitmap& rSalBitmap,
                               const SalBitmap& rTransparentBitmap, const OutputDevice *pOutDev )
-- 
1.7.2.5


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.