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 /sdext | |
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 'sdext')
-rw-r--r-- | sdext/source/presenter/PresenterNotesView.cxx | 9 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterToolBar.cxx | 1 |
2 files changed, 0 insertions, 10 deletions
diff --git a/sdext/source/presenter/PresenterNotesView.cxx b/sdext/source/presenter/PresenterNotesView.cxx index 73c987158b47..62e054c4e94d 100644 --- a/sdext/source/presenter/PresenterNotesView.cxx +++ b/sdext/source/presenter/PresenterNotesView.cxx @@ -544,15 +544,6 @@ void PresenterNotesView::PaintText (const awt::Rectangle& rUpdateBox) if (aBox.Width <= 0 || aBox.Height <= 0) return; - rendering::ViewState aViewState ( - geometry::AffineMatrix2D(1,0,0, 0,1,0), - PresenterGeometryHelper::CreatePolygon(aBox, mxCanvas->getDevice())); - rendering::RenderState aRenderState( - geometry::AffineMatrix2D(1,0,0, 0,1,0), - nullptr, - Sequence<double>(3), - rendering::CompositeOperation::SOURCE); - if (mpBackground.get() != nullptr) { // Paint the background. diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx index ac3e972b0f98..226c8283afaf 100644 --- a/sdext/source/presenter/PresenterToolBar.cxx +++ b/sdext/source/presenter/PresenterToolBar.cxx @@ -868,7 +868,6 @@ void PresenterToolBar::LayoutPart ( } else { ElementContainerPart::const_iterator iElement; - ElementContainerPart::const_iterator iEnd (rpPart->end()); ElementContainerPart::const_iterator iBegin (rpPart->begin()); for (iElement=rpPart->end()-1; iElement!=iBegin-1; --iElement) |