summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-03-13 12:23:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-03-14 08:11:55 +0100
commitebe1f639cf65c20cee70aa55176bfb67e7b915f7 (patch)
tree3d80dace017cc053b69a53bfc2cce5ae0cf2f9eb /vcl
parentb8d3d4ad0f5bf4f449118214a91219b98ee506c3 (diff)
loplugin:unusedmethods
Change-Id: I851eba4ca80eac9ee5896df53fbcd0f5ad125763 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112433 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/bitmap/alpha.cxx23
-rw-r--r--vcl/source/window/floatwin.cxx5
2 files changed, 0 insertions, 28 deletions
diff --git a/vcl/source/bitmap/alpha.cxx b/vcl/source/bitmap/alpha.cxx
index 1c67a8cdbcc1..e361ee6dcae6 100644
--- a/vcl/source/bitmap/alpha.cxx
+++ b/vcl/source/bitmap/alpha.cxx
@@ -80,29 +80,6 @@ void AlphaMask::Erase( sal_uInt8 cTransparency )
Bitmap::Erase( Color( cTransparency, cTransparency, cTransparency ) );
}
-void AlphaMask::Replace( const Bitmap& rMask, sal_uInt8 cReplaceTransparency )
-{
- Bitmap::ScopedReadAccess pMaskAcc( const_cast<Bitmap&>(rMask) );
- AlphaScopedWriteAccess pAcc(*this);
-
- if( !(pMaskAcc && pAcc) )
- return;
-
- const BitmapColor aReplace( cReplaceTransparency );
- const tools::Long nWidth = std::min( pMaskAcc->Width(), pAcc->Width() );
- const tools::Long nHeight = std::min( pMaskAcc->Height(), pAcc->Height() );
- const BitmapColor aMaskWhite( pMaskAcc->GetBestMatchingColor( COL_WHITE ) );
-
- for( tools::Long nY = 0; nY < nHeight; nY++ )
- {
- Scanline pScanline = pAcc->GetScanline(nY);
- Scanline pScanlineMask = pMaskAcc->GetScanline(nY);
- for( tools::Long nX = 0; nX < nWidth; nX++ )
- if( pMaskAcc->GetPixelFromData( pScanlineMask, nX ) == aMaskWhite )
- pAcc->SetPixelOnData( pScanline, nX, aReplace );
- }
-}
-
void AlphaMask::Replace( sal_uInt8 cSearchTransparency, sal_uInt8 cReplaceTransparency )
{
AlphaScopedWriteAccess pAcc(*this);
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index ecc2163a9d61..1bc1b2a9a3cd 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -228,11 +228,6 @@ void FloatingWindow::dispose()
SystemWindow::dispose();
}
-Point FloatingWindow::CalcFloatingPosition( vcl::Window* pWindow, const tools::Rectangle& rRect, FloatWinPopupFlags nFlags, sal_uInt16& rArrangeIndex )
-{
- return ImplCalcPos( pWindow, rRect, nFlags, rArrangeIndex );
-}
-
Point FloatingWindow::ImplCalcPos(vcl::Window* pWindow,
const tools::Rectangle& rRect, FloatWinPopupFlags nFlags,
sal_uInt16& rArrangeIndex, Point* pLOKTwipsPos)