diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-25 17:49:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-26 08:01:42 +0100 |
commit | 51b5b93092d6231615de470c62494c24e54828a1 (patch) | |
tree | 7d1556d834a9f61e0f40f29f318c57328cba67e7 /vcl/source | |
parent | b9fe4f26eaf1099b8d0907b8d9cbf52c86914466 (diff) |
remove some unused local vars
found by a more aggressive variant of loplugin:unusedvariables.
This is my first pass, committing the simplest and most obviously
unnecessary vars
Change-Id: I9676a6e39a101937097788548764506c93811c57
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87414
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/FileDefinitionWidgetDraw.cxx | 2 | ||||
-rw-r--r-- | vcl/source/gdi/gdimtf.cxx | 3 | ||||
-rw-r--r-- | vcl/source/gdi/salmisc.cxx | 1 | ||||
-rw-r--r-- | vcl/source/treelist/iconviewimpl.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/brdwin.cxx | 1 |
5 files changed, 0 insertions, 9 deletions
diff --git a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx index 4fd76a473300..4133c3c46a25 100644 --- a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx +++ b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx @@ -470,8 +470,6 @@ void munchDrawCommands(std::vector<std::shared_ptr<WidgetDrawAction>> const& rDr auto aIterator = rCacheDrawCommands.find(rWidgetDraw.msSource); - gfx::DrawRoot aDrawRoot; - if (aIterator == rCacheDrawCommands.end()) { SvFileStream aFileStream(rWidgetDraw.msSource, StreamMode::READ); diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx index bd83aab83f68..31a8c6d43661 100644 --- a/vcl/source/gdi/gdimtf.cxx +++ b/vcl/source/gdi/gdimtf.cxx @@ -434,7 +434,6 @@ bool GDIMetaFile::ImplPlayWithRenderer( OutputDevice* pOut, const Point& rPos, S void GDIMetaFile::Play( OutputDevice* pOut, const Point& rPos, const Size& rSize ) { - vcl::Region aDrawClipRegion; MapMode aDrawMap( GetPrefMapMode() ); Size aDestSize( pOut->LogicToPixel( rSize ) ); @@ -1284,7 +1283,6 @@ static void ImplActionBounds( tools::Rectangle& o_rOutBounds, tools::Rectangle GDIMetaFile::GetBoundRect( OutputDevice& i_rReference, tools::Rectangle* pHairline ) const { - GDIMetaFile aMtf; ScopedVclPtrInstance< VirtualDevice > aMapVDev( i_rReference ); aMapVDev->EnableOutput( false ); @@ -2199,7 +2197,6 @@ GDIMetaFile GDIMetaFile::GetMonochromeMtf( const Color& rColor ) const BitmapChecksum GDIMetaFile::GetChecksum() const { - GDIMetaFile aMtf; SvMemoryStream aMemStm( 65535, 65535 ); ImplMetaWriteData aWriteData; SVBT16 aBT16; diff --git a/vcl/source/gdi/salmisc.cxx b/vcl/source/gdi/salmisc.cxx index 29ddddaef454..a6a5e36279a2 100644 --- a/vcl/source/gdi/salmisc.cxx +++ b/vcl/source/gdi/salmisc.cxx @@ -229,7 +229,6 @@ static void ImplTCToPAL( const BitmapBuffer& rSrcBuffer, BitmapBuffer const & rD const long nHeight1 = rDstBuffer.mnHeight- 1; const ColorMask& rSrcMask = rSrcBuffer.maColorMask; const ColorMask& rDstMask = rDstBuffer.maColorMask; - BitmapPalette aColMap( rSrcBuffer.maPalette.GetEntryCount() ); std::unique_ptr<sal_uInt8[]> pColToPalMap(new sal_uInt8[ TC_TO_PAL_COLORS ]); BitmapColor aIndex( 0 ); diff --git a/vcl/source/treelist/iconviewimpl.cxx b/vcl/source/treelist/iconviewimpl.cxx index c9c5e530592f..5dac45ba7c14 100644 --- a/vcl/source/treelist/iconviewimpl.cxx +++ b/vcl/source/treelist/iconviewimpl.cxx @@ -412,8 +412,6 @@ void IconViewImpl::Paint(vcl::RenderContext& rRenderContext, const tools::Rectan nStartId--; } - vcl::Region aClipRegion(GetClipRegionRect()); - if (!m_pCursor && !mbNoAutoCurEntry) { // do not select if multiselection or explicit set diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx index 349102848bd1..65110bfc07d2 100644 --- a/vcl/source/window/brdwin.cxx +++ b/vcl/source/window/brdwin.cxx @@ -1399,7 +1399,6 @@ void ImplStdBorderWindowView::DrawWindow(vcl::RenderContext& rRenderContext, con Point aTmpPoint = pOffset ? *pOffset : Point(); tools::Rectangle aInRect( aTmpPoint, Size( pData->mnWidth, pData->mnHeight ) ); const StyleSettings& rStyleSettings = rRenderContext.GetSettings().GetStyleSettings(); - DecorationView aDecoView(&rRenderContext); Color aFaceColor(rStyleSettings.GetFaceColor()); Color aFrameColor(aFaceColor); |