diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-03-13 12:23:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-14 08:11:55 +0100 |
commit | ebe1f639cf65c20cee70aa55176bfb67e7b915f7 (patch) | |
tree | 3d80dace017cc053b69a53bfc2cce5ae0cf2f9eb /drawinglayer | |
parent | b8d3d4ad0f5bf4f449118214a91219b98ee506c3 (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 'drawinglayer')
-rw-r--r-- | drawinglayer/source/processor2d/vclhelperbufferdevice.cxx | 45 | ||||
-rw-r--r-- | drawinglayer/source/processor2d/vclhelperbufferdevice.hxx | 2 |
2 files changed, 0 insertions, 47 deletions
diff --git a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx index e192a29a0a6f..7837d0bdd857 100644 --- a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx +++ b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx @@ -272,7 +272,6 @@ VDevBuffer& getVDevBuffer() impBufferDevice::impBufferDevice(OutputDevice& rOutDev, const basegfx::B2DRange& rRange) : mrOutDev(rOutDev) , mpContent(nullptr) - , mpMask(nullptr) , mpAlpha(nullptr) { basegfx::B2DRange aRangePixel(rRange); @@ -316,11 +315,6 @@ impBufferDevice::~impBufferDevice() getVDevBuffer().free(*mpContent); } - if (mpMask) - { - getVDevBuffer().free(*mpMask); - } - if (mpAlpha) { getVDevBuffer().free(*mpAlpha); @@ -384,30 +378,6 @@ void impBufferDevice::paint(double fTrans) aAlphaMask.BlendWith(aContent.GetAlpha()); mrOutDev.DrawBitmapEx(maDestPixel.TopLeft(), BitmapEx(aContent.GetBitmap(), aAlphaMask)); } - else if (mpMask) - { - mpMask->EnableMapMode(false); - const Bitmap aMask(mpMask->GetBitmap(aEmptyPoint, aSizePixel)); - -#ifdef DBG_UTIL - if (bDoSaveForVisualControl) - { - SvFileStream aNew( -#ifdef _WIN32 - "c:\\mask.bmp", -#else - "~/mask.bmp", -#endif - StreamMode::WRITE | StreamMode::TRUNC); - WriteDIB(aMask, aNew, false, true); - } -#endif - - BitmapEx aContent(mpContent->GetBitmapEx(aEmptyPoint, aSizePixel)); - AlphaMask aAlpha(aContent.GetAlpha()); - aAlpha.BlendWith(aMask); - mrOutDev.DrawBitmapEx(maDestPixel.TopLeft(), BitmapEx(aContent.GetBitmap(), aAlpha)); - } else if (0.0 != fTrans) { basegfx::B2DHomMatrix trans, scale; @@ -432,21 +402,6 @@ VirtualDevice& impBufferDevice::getContent() return *mpContent; } -VirtualDevice& impBufferDevice::getMask() -{ - SAL_WARN_IF(!mpContent, "drawinglayer", - "impBufferDevice: No content, check isVisible() before accessing (!)"); - if (!mpMask) - { - mpMask = getVDevBuffer().alloc(mrOutDev, maDestPixel.GetSize(), true, false); - mpMask->SetMapMode(mpContent->GetMapMode()); - - // do NOT copy AA flag for mask! - } - - return *mpMask; -} - VirtualDevice& impBufferDevice::getTransparence() { SAL_WARN_IF(!mpContent, "drawinglayer", diff --git a/drawinglayer/source/processor2d/vclhelperbufferdevice.hxx b/drawinglayer/source/processor2d/vclhelperbufferdevice.hxx index 90d351eac50f..3b5d30415cc2 100644 --- a/drawinglayer/source/processor2d/vclhelperbufferdevice.hxx +++ b/drawinglayer/source/processor2d/vclhelperbufferdevice.hxx @@ -34,7 +34,6 @@ class impBufferDevice { OutputDevice& mrOutDev; VclPtr<VirtualDevice> mpContent; - VclPtr<VirtualDevice> mpMask; VclPtr<VirtualDevice> mpAlpha; tools::Rectangle maDestPixel; @@ -45,7 +44,6 @@ public: void paint(double fTrans = 0.0); bool isVisible() const { return !maDestPixel.IsEmpty(); } VirtualDevice& getContent(); - VirtualDevice& getMask(); VirtualDevice& getTransparence(); }; } // end of namespace drawinglayer |