diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-24 09:15:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-25 08:06:15 +0100 |
commit | 970ca8de0be4c4cd9485170f3c56a34b4069eec2 (patch) | |
tree | 1eb110e926d1539b729e06ab78e723f5ca19ae1c /cppcanvas | |
parent | 880af0672c6362b0dbdae137d92e8ebf85a7b335 (diff) |
loplugin:unusedfields in various
Change-Id: I31d0e6c3559af2e322fb474b97f3bbf4d5064831
Reviewed-on: https://gerrit.libreoffice.org/68280
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/inc/canvasgraphichelper.hxx | 1 | ||||
-rw-r--r-- | cppcanvas/source/tools/canvasgraphichelper.cxx | 9 |
2 files changed, 1 insertions, 9 deletions
diff --git a/cppcanvas/source/inc/canvasgraphichelper.hxx b/cppcanvas/source/inc/canvasgraphichelper.hxx index 96daa1a74b9f..fee174300e83 100644 --- a/cppcanvas/source/inc/canvasgraphichelper.hxx +++ b/cppcanvas/source/inc/canvasgraphichelper.hxx @@ -63,7 +63,6 @@ namespace cppcanvas boost::optional<basegfx::B2DPolyPolygon> maClipPolyPolygon; CanvasSharedPtr mpCanvas; - css::uno::Reference< css::rendering::XGraphicDevice > mxGraphicDevice; }; } diff --git a/cppcanvas/source/tools/canvasgraphichelper.cxx b/cppcanvas/source/tools/canvasgraphichelper.cxx index ded58f9f6b2e..592179f42364 100644 --- a/cppcanvas/source/tools/canvasgraphichelper.cxx +++ b/cppcanvas/source/tools/canvasgraphichelper.cxx @@ -43,19 +43,12 @@ namespace cppcanvas { CanvasGraphicHelper::CanvasGraphicHelper( const CanvasSharedPtr& rParentCanvas ) : maClipPolyPolygon(), - mpCanvas( rParentCanvas ), - mxGraphicDevice() + mpCanvas( rParentCanvas ) { OSL_ENSURE( mpCanvas.get() != nullptr && mpCanvas->getUNOCanvas().is(), "CanvasGraphicHelper::CanvasGraphicHelper: no valid canvas" ); - if( mpCanvas.get() != nullptr && - mpCanvas->getUNOCanvas().is() ) - { - mxGraphicDevice = mpCanvas->getUNOCanvas()->getDevice(); - } - ::canvas::tools::initRenderState( maRenderState ); } |