[PATCH] Remove unused vcl methods.
Mònica Ramírez Arceda
monica at probeta.net
Sun Apr 22 03:28:54 PDT 2012
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
--=-6Ggw8N9MW4cgwf2lIYW0--
More information about the LibreOffice
mailing list