[Libreoffice-commits] core.git: include/svx sd/source svx/inc svx/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Feb 22 10:12:27 UTC 2019


 include/svx/camera3d.hxx                          |    5 -----
 include/svx/galleryitem.hxx                       |    1 -
 include/svx/obj3d.hxx                             |    5 -----
 include/svx/paraprev.hxx                          |    2 --
 include/svx/svdmrkv.hxx                           |    4 ----
 include/svx/svdobj.hxx                            |    2 --
 include/svx/view3d.hxx                            |    2 --
 sd/source/ui/func/fucon3d.cxx                     |    1 -
 svx/inc/GalleryControl.hxx                        |    1 -
 svx/source/customshapes/EnhancedCustomShape3d.cxx |    1 -
 svx/source/dialog/dlgctl3d.cxx                    |    2 --
 svx/source/dialog/paraprev.cxx                    |    1 -
 svx/source/engine3d/camera3d.cxx                  |   13 +------------
 svx/source/engine3d/obj3d.cxx                     |   14 +-------------
 svx/source/engine3d/view3d.cxx                    |    3 ---
 svx/source/form/dataaccessdescriptor.cxx          |   11 +----------
 svx/source/form/sqlparserclient.cxx               |    1 -
 svx/source/gallery2/GalleryControl.cxx            |    3 ---
 svx/source/inc/sqlparserclient.hxx                |    3 ---
 svx/source/items/galleryitem.cxx                  |    1 -
 svx/source/svdraw/svddrgmt.cxx                    |    1 -
 svx/source/svdraw/svdedxv.cxx                     |    8 --------
 svx/source/svdraw/svdmrkv.cxx                     |    1 -
 svx/source/svdraw/svdobj.cxx                      |    1 -
 svx/source/svdraw/svdocirc.cxx                    |    5 +----
 svx/source/svdraw/svdomeas.cxx                    |    4 ----
 svx/source/svdraw/svdview.cxx                     |    5 -----
 svx/source/unodraw/unopage.cxx                    |    1 -
 svx/source/unodraw/unoshap3.cxx                   |    1 -
 29 files changed, 4 insertions(+), 99 deletions(-)

New commits:
commit b1facbf894a9870f501049409effa937a4ff3488
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Fri Feb 22 10:22:12 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Feb 22 11:12:00 2019 +0100

    loplugin:unusedfields in svx
    
    Change-Id: I9f6a21066224c449d3fcc8a0d97cb32dae0a65f6
    Reviewed-on: https://gerrit.libreoffice.org/68193
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/include/svx/camera3d.hxx b/include/svx/camera3d.hxx
index c324be998453..cf61dfc326a7 100644
--- a/include/svx/camera3d.hxx
+++ b/include/svx/camera3d.hxx
@@ -33,9 +33,6 @@
 
 class SAL_WARN_UNUSED SVX_DLLPUBLIC Camera3D final : public Viewport3D
 {
-    basegfx::B3DPoint   aResetPos;
-    basegfx::B3DPoint   aResetLookAt;
-
     basegfx::B3DPoint   aPosition;
     basegfx::B3DPoint   aLookAt;
     double      fFocalLength;
@@ -48,8 +45,6 @@ public:
              double fFocalLen = 35.0);
     Camera3D();
 
-    void SetDefaults(const basegfx::B3DPoint& rPos, const basegfx::B3DPoint& rLookAt);
-
     void SetViewWindow(double fX, double fY, double fW, double fH);
 
     void SetPosition(const basegfx::B3DPoint& rNewPos);
diff --git a/include/svx/galleryitem.hxx b/include/svx/galleryitem.hxx
index 1a9ac4f617c3..2af76e961509 100644
--- a/include/svx/galleryitem.hxx
+++ b/include/svx/galleryitem.hxx
@@ -40,7 +40,6 @@ class SVX_DLLPUBLIC SvxGalleryItem : public SfxPoolItem
 {
     sal_Int8 m_nType;
     OUString m_aURL;
-    OUString m_aFilterName;
     css::uno::Reference< css::lang::XComponent > m_xDrawing;
     css::uno::Reference< css::graphic::XGraphic > m_xGraphic;
 
diff --git a/include/svx/obj3d.hxx b/include/svx/obj3d.hxx
index fe9d1536245e..f1c09d611dbc 100644
--- a/include/svx/obj3d.hxx
+++ b/include/svx/obj3d.hxx
@@ -175,12 +175,7 @@ private:
 protected:
     virtual std::unique_ptr<sdr::properties::BaseProperties> CreateObjectSpecificProperties() override;
 
-    // material of the object
-    Color                   aMaterialAmbientColor;
-
 protected:
-    void SetDefaultAttributes();
-
     // convert given basegfx::B3DPolyPolygon to screen coor
     basegfx::B2DPolyPolygon TransformToScreenCoor(const basegfx::B3DPolyPolygon& rCandidate);
 
diff --git a/include/svx/paraprev.hxx b/include/svx/paraprev.hxx
index 18e7ec5ea2bb..e650173d699f 100644
--- a/include/svx/paraprev.hxx
+++ b/include/svx/paraprev.hxx
@@ -53,8 +53,6 @@ class SVX_DLLPUBLIC SvxParaPrevWindow final : public weld::CustomWidgetControlle
     // line distance
     SvxPrevLineSpace    eLine;
 
-    tools::Rectangle    Lines[9];
-
     virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) override;
     virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override;
     void DrawParagraph(vcl::RenderContext& rRenderContext);
diff --git a/include/svx/svdmrkv.hxx b/include/svx/svdmrkv.hxx
index a864477fb80b..d974cd8779d5 100644
--- a/include/svx/svdmrkv.hxx
+++ b/include/svx/svdmrkv.hxx
@@ -100,7 +100,6 @@ protected:
 
     Point                       maRef1;            // Persistent - Rotation center / axis of reflection
     Point                       maRef2;            // Persistent
-    Point                       maLastCrookCenter; // Persistent
     SdrHdlList                  maHdlList;
     sdr::ViewSelection          maSdrViewSelection;
 
@@ -424,9 +423,6 @@ public:
     // separately. The method returns sal_True, if at least one group was entered.
     void EnterMarkedGroup();
 
-    // Is set by DragView automatically when finishing a Crook-Drag.
-    void SetLastCrookCenter(const Point& rPt) { maLastCrookCenter=rPt; }
-
     // Rotation center point and start point of the axis of reflextion, respectively
     const Point& GetRef1() const { return maRef1; }
     void SetRef1(const Point& rPt);
diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx
index ee680b590bcc..0d39a3843aae 100644
--- a/include/svx/svdobj.hxx
+++ b/include/svx/svdobj.hxx
@@ -184,8 +184,6 @@ class SVX_DLLPUBLIC SdrObjMacroHitRec
 {
 public:
     Point                       aPos;
-    Point                       aDownPos;
-    VclPtr<OutputDevice>        pOut;
     const SdrLayerIDSet*        pVisiLayer;
     const SdrPageView*          pPageView;
     sal_uInt16                  nTol;
diff --git a/include/svx/view3d.hxx b/include/svx/view3d.hxx
index 9a385d45ecd8..83f25353c7b6 100644
--- a/include/svx/view3d.hxx
+++ b/include/svx/view3d.hxx
@@ -44,8 +44,6 @@ class SVX_DLLPUBLIC E3dView : public SdrView
 protected:
     E3dDefaultAttributes        a3DDefaultAttr;
     MouseEvent                  aMouseEvent;                    // The parameters of the last Events (Mouse, Keyboard)
-    Color                       aDefaultLightColor;             // The parameters for the last colors
-    Color                       aDefaultAmbientColor;
 
     // Migrate selections
     std::unique_ptr<Impl3DMirrorConstructOverlay> mpMirrorOverlay;
diff --git a/sd/source/ui/func/fucon3d.cxx b/sd/source/ui/func/fucon3d.cxx
index eb9cb4f9df8d..4e6b82cc3d3f 100644
--- a/sd/source/ui/func/fucon3d.cxx
+++ b/sd/source/ui/func/fucon3d.cxx
@@ -403,7 +403,6 @@ SdrObjectUniquePtr FuConstruct3dObject::CreateDefaultObject(const sal_uInt16 nID
     ::basegfx::B3DPoint aCamPos(0.0, 0.0, fCamZ < fDefaultCamPosZ ? fDefaultCamPosZ : fCamZ);
     aCam.SetPosAndLookAt(aCamPos, aLookAt);
     aCam.SetFocalLength(mpView->GetDefaultCamFocal());
-    aCam.SetDefaults(::basegfx::B3DPoint(0.0, 0.0, fDefaultCamPosZ), aLookAt);
     pScene->SetCamera(aCam);
     pScene->InsertObject(p3DObj);
     pScene->NbcSetSnapRect(a3DRect);
diff --git a/svx/inc/GalleryControl.hxx b/svx/inc/GalleryControl.hxx
index 5ca673a2dffe..ca56dd2f8788 100644
--- a/svx/inc/GalleryControl.hxx
+++ b/svx/inc/GalleryControl.hxx
@@ -48,7 +48,6 @@ private:
     VclPtr<GallerySplitter> mpSplitter;
     VclPtr<GalleryBrowser1> mpBrowser1;
     VclPtr<GalleryBrowser2> mpBrowser2;
-    Size maLastSize;
     bool mbIsInitialResize;
 
     void InitSettings();
diff --git a/svx/source/customshapes/EnhancedCustomShape3d.cxx b/svx/source/customshapes/EnhancedCustomShape3d.cxx
index 9601fd4c88da..aac531dd26a3 100644
--- a/svx/source/customshapes/EnhancedCustomShape3d.cxx
+++ b/svx/source/customshapes/EnhancedCustomShape3d.cxx
@@ -595,7 +595,6 @@ SdrObject* EnhancedCustomShape3d::Create3DObject(
             rCamera.SetViewWindow( -fW / 2, - fH / 2, fW, fH);
             basegfx::B3DPoint aLookAt( 0.0, 0.0, 0.0 );
             basegfx::B3DPoint aCamPos( 0.0, 0.0, 100.0 );
-            rCamera.SetDefaults( basegfx::B3DPoint( 0.0, 0.0, 100.0 ), aLookAt );
             rCamera.SetPosAndLookAt( aCamPos, aLookAt );
             rCamera.SetFocalLength( 1.0 );
             rCamera.SetProjection( eProjectionType );
diff --git a/svx/source/dialog/dlgctl3d.cxx b/svx/source/dialog/dlgctl3d.cxx
index 48e6cdb78f01..7dea82cde3f4 100644
--- a/svx/source/dialog/dlgctl3d.cxx
+++ b/svx/source/dialog/dlgctl3d.cxx
@@ -116,7 +116,6 @@ void Svx3DPreviewControl::Construct()
     rCamera.SetPosAndLookAt(aCamPos, aLookAt);
     double fDefaultCamFocal = mp3DView->GetDefaultCamFocal();
     rCamera.SetFocalLength(fDefaultCamFocal);
-    rCamera.SetDefaults(basegfx::B3DPoint(0.0, 0.0, fDefaultCamPosZ), aLookAt);
 
     mpScene->SetCamera( rCamera );
     mpFmPage->InsertObject( mpScene );
@@ -355,7 +354,6 @@ void Svx3DLightControl::Construct2()
         rCamera.SetPosAndLookAt(aCamPos, aLookAt);
         double fDefaultCamFocal = mp3DView->GetDefaultCamFocal();
         rCamera.SetFocalLength(fDefaultCamFocal);
-        rCamera.SetDefaults(basegfx::B3DPoint(0.0, 0.0, fDefaultCamPosZ), aLookAt);
 
         mpScene->SetCamera( rCamera );
 
diff --git a/svx/source/dialog/paraprev.cxx b/svx/source/dialog/paraprev.cxx
index 97eb87ecc64e..db8beec709db 100644
--- a/svx/source/dialog/paraprev.cxx
+++ b/svx/source/dialog/paraprev.cxx
@@ -194,7 +194,6 @@ void SvxParaPrevWindow::DrawParagraph(vcl::RenderContext& rRenderContext)
         tools::Rectangle aRect(aPnt, aSiz);
 
         rRenderContext.DrawRect( aRect );
-        Lines[i] = aRect;
 
         if (5 == i)
         {
diff --git a/svx/source/engine3d/camera3d.cxx b/svx/source/engine3d/camera3d.cxx
index b9ea65e56313..91138d91b33b 100644
--- a/svx/source/engine3d/camera3d.cxx
+++ b/svx/source/engine3d/camera3d.cxx
@@ -22,8 +22,6 @@
 
 Camera3D::Camera3D(const basegfx::B3DPoint& rPos, const basegfx::B3DPoint& rLookAt,
                    double fFocalLen) :
-    aResetPos(rPos),
-    aResetLookAt(rLookAt),
     fBankAngle(0),
     bAutoAdjustProjection(true)
 {
@@ -33,21 +31,12 @@ Camera3D::Camera3D(const basegfx::B3DPoint& rPos, const basegfx::B3DPoint& rLook
 }
 
 Camera3D::Camera3D()
-    : aResetPos(0.0, 0.0, 1.0)
-    , fFocalLength(35.0)
+    : fFocalLength(35.0)
     , fBankAngle(0.0)
     , bAutoAdjustProjection(false)
 {
 }
 
-// Set default values for reset
-
-void Camera3D::SetDefaults(const basegfx::B3DPoint& rPos, const basegfx::B3DPoint& rLookAt)
-{
-    aResetPos           = rPos;
-    aResetLookAt        = rLookAt;
-}
-
 // Set ViewWindow and adjust PRP
 
 void Camera3D::SetViewWindow(double fX, double fY, double fW, double fH)
diff --git a/svx/source/engine3d/obj3d.cxx b/svx/source/engine3d/obj3d.cxx
index 297719c09435..ed27d7d6953d 100644
--- a/svx/source/engine3d/obj3d.cxx
+++ b/svx/source/engine3d/obj3d.cxx
@@ -492,17 +492,8 @@ std::unique_ptr<sdr::properties::BaseProperties> E3dCompoundObject::CreateObject
 }
 
 E3dCompoundObject::E3dCompoundObject(SdrModel& rSdrModel)
-:   E3dObject(rSdrModel),
-    aMaterialAmbientColor()
+:   E3dObject(rSdrModel)
 {
-    // Set defaults
-    SetDefaultAttributes();
-}
-
-void E3dCompoundObject::SetDefaultAttributes()
-{
-    // Set defaults
-    aMaterialAmbientColor = COL_BLACK;
 }
 
 E3dCompoundObject::~E3dCompoundObject ()
@@ -644,9 +635,6 @@ E3dCompoundObject& E3dCompoundObject::operator=(const E3dCompoundObject& rObj)
     if( this == &rObj )
         return *this;
     E3dObject::operator=(rObj);
-
-    aMaterialAmbientColor = rObj.aMaterialAmbientColor;
-
     return *this;
 }
 
diff --git a/svx/source/engine3d/view3d.cxx b/svx/source/engine3d/view3d.cxx
index a3b3af4d41b7..cb7deb16a2fd 100644
--- a/svx/source/engine3d/view3d.cxx
+++ b/svx/source/engine3d/view3d.cxx
@@ -1308,7 +1308,6 @@ void E3dView::InitScene(E3dScene* pScene, double fW, double fH, double fCamZ)
 
     aCam.SetPosAndLookAt(aCamPos, aLookAt);
     aCam.SetFocalLength(GetDefaultCamFocal());
-    aCam.SetDefaults(basegfx::B3DPoint(0.0, 0.0, fDefaultCamPosZ), aLookAt);
     pScene->SetCamera(aCam);
 }
 
@@ -1493,8 +1492,6 @@ void E3dView::ResetCreationActive ()
 
 void E3dView::InitView ()
 {
-    aDefaultLightColor       = COL_WHITE;
-    aDefaultAmbientColor     = COL_BLACK;
     mpMirrorOverlay          = nullptr;
 }
 
diff --git a/svx/source/form/dataaccessdescriptor.cxx b/svx/source/form/dataaccessdescriptor.cxx
index 04c9976d61ee..09cf6eee3c8b 100644
--- a/svx/source/form/dataaccessdescriptor.cxx
+++ b/svx/source/form/dataaccessdescriptor.cxx
@@ -44,7 +44,6 @@ namespace svx
         typedef ::std::map< DataAccessDescriptorProperty, Any >     DescriptorValues;
         DescriptorValues            m_aValues;
         Sequence< PropertyValue >   m_aAsSequence;
-        Reference< XPropertySet >   m_xAsSet;
 
         typedef ::std::map< OUString, DataAccessDescriptorProperty >    MapString2PropertyEntry;
 
@@ -85,8 +84,6 @@ namespace svx
         ,m_bSequenceOutOfDate( _rSource.m_bSequenceOutOfDate )
         ,m_aValues( _rSource.m_aValues )
     {
-        if (!m_bSetOutOfDate)
-            m_xAsSet = _rSource.m_xAsSet;
         if (!m_bSequenceOutOfDate)
             m_aAsSequence = _rSource.m_aAsSequence;
     }
@@ -150,13 +147,7 @@ namespace svx
         }
 
         bool bValidPropsOnly = buildFrom(aValues);
-        if (bValidPropsOnly)
-        {
-            m_xAsSet = _rxValues;
-            m_bSetOutOfDate = false;
-        }
-        else
-            m_bSetOutOfDate = true;
+        m_bSetOutOfDate = !bValidPropsOnly;
 
         return bValidPropsOnly;
     }
diff --git a/svx/source/form/sqlparserclient.cxx b/svx/source/form/sqlparserclient.cxx
index 6bc957270b92..f1cd230a8e0d 100644
--- a/svx/source/form/sqlparserclient.cxx
+++ b/svx/source/form/sqlparserclient.cxx
@@ -34,7 +34,6 @@ namespace svxform
     OSQLParserClient::OSQLParserClient(const Reference< XComponentContext >& rxContext)
         : m_pParser(new OSQLParser(rxContext, getParseContext()))
     {
-        m_xContext = rxContext;
     }
 
     std::unique_ptr< ::connectivity::OSQLParseNode > OSQLParserClient::predicateTree(
diff --git a/svx/source/gallery2/GalleryControl.cxx b/svx/source/gallery2/GalleryControl.cxx
index f54034aa88da..83979938b00d 100644
--- a/svx/source/gallery2/GalleryControl.cxx
+++ b/svx/source/gallery2/GalleryControl.cxx
@@ -48,7 +48,6 @@ GalleryControl::GalleryControl (
               [this] ()
                   { return mpBrowser2->SelectTheme(mpBrowser1->GetSelectedTheme()); })),
       mpBrowser2(VclPtr<GalleryBrowser2>::Create(this, mpGallery)),
-      maLastSize(GetOutputSizePixel()),
       mbIsInitialResize(true)
 {
     mpBrowser1->SelectTheme(0);
@@ -171,8 +170,6 @@ void GalleryControl::Resize()
             Point( nFrameLen, nSplitPos + nSplitSize ),
             Size( aNewSize.Width() - nFrameLen2, aNewSize.Height() - nSplitSize - nSplitPos - nFrameLen ));
     }
-
-    maLastSize = aNewSize;
 }
 
 bool GalleryControl::GalleryKeyInput( const KeyEvent& rKEvt )
diff --git a/svx/source/inc/sqlparserclient.hxx b/svx/source/inc/sqlparserclient.hxx
index 7873c41bbf99..231554265a83 100644
--- a/svx/source/inc/sqlparserclient.hxx
+++ b/svx/source/inc/sqlparserclient.hxx
@@ -41,9 +41,6 @@ namespace svxform
 
     class SVX_DLLPUBLIC OSQLParserClient : public ::svxform::OParseContextClient
     {
-    private:
-        css::uno::Reference< css::uno::XComponentContext > m_xContext;
-
     protected:
         mutable std::shared_ptr< ::connectivity::OSQLParser > m_pParser;
 
diff --git a/svx/source/items/galleryitem.cxx b/svx/source/items/galleryitem.cxx
index f5cf28f06906..e03cc9f3417a 100644
--- a/svx/source/items/galleryitem.cxx
+++ b/svx/source/items/galleryitem.cxx
@@ -114,7 +114,6 @@ bool SvxGalleryItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /* nMemberId
 
     m_nType = nType;
     m_aURL = aURL;
-    m_aFilterName = aFilterName;
     m_xDrawing = xDrawing;
     m_xGraphic = xGraphic;
 
diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx
index ecb81a3e1299..e6509a6f1a2d 100644
--- a/svx/source/svdraw/svddrgmt.cxx
+++ b/svx/source/svdraw/svddrgmt.cxx
@@ -3374,7 +3374,6 @@ bool SdrDragCrook::EndSdrDrag(bool bCopy)
         if (bDoCrook)
         {
             getSdrDragView().CrookMarkedObj(aCenter,aRad,eMode,bVertical,!bContortion,bCopy);
-            getSdrDragView().SetLastCrookCenter(aCenter);
         }
 
         if (bResize && bUndo)
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index aa8eb6f687ed..b498ec5c50fc 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -2290,11 +2290,9 @@ void SdrObjEditView::ImpMacroUp(const Point& rUpPos)
     {
         SdrObjMacroHitRec aHitRec;
         aHitRec.aPos=rUpPos;
-        aHitRec.aDownPos=aMacroDownPos;
         aHitRec.nTol=nMacroTol;
         aHitRec.pVisiLayer=&pMacroPV->GetVisibleLayers();
         aHitRec.pPageView=pMacroPV;
-        aHitRec.pOut=pMacroWin.get();
         pMacroObj->PaintMacro(*pMacroWin,tools::Rectangle(),aHitRec);
         bMacroDown=false;
     }
@@ -2306,11 +2304,9 @@ void SdrObjEditView::ImpMacroDown(const Point& rDownPos)
     {
         SdrObjMacroHitRec aHitRec;
         aHitRec.aPos=rDownPos;
-        aHitRec.aDownPos=aMacroDownPos;
         aHitRec.nTol=nMacroTol;
         aHitRec.pVisiLayer=&pMacroPV->GetVisibleLayers();
         aHitRec.pPageView=pMacroPV;
-        aHitRec.pOut=pMacroWin.get();
         pMacroObj->PaintMacro(*pMacroWin,tools::Rectangle(),aHitRec);
         bMacroDown=true;
     }
@@ -2321,11 +2317,9 @@ void SdrObjEditView::MovMacroObj(const Point& rPnt)
     if (pMacroObj!=nullptr) {
         SdrObjMacroHitRec aHitRec;
         aHitRec.aPos=rPnt;
-        aHitRec.aDownPos=aMacroDownPos;
         aHitRec.nTol=nMacroTol;
         aHitRec.pVisiLayer=&pMacroPV->GetVisibleLayers();
         aHitRec.pPageView=pMacroPV;
-        aHitRec.pOut=pMacroWin.get();
         bool bDown=pMacroObj->IsMacroHit(aHitRec);
         if (bDown) ImpMacroDown(rPnt);
         else ImpMacroUp(rPnt);
@@ -2348,11 +2342,9 @@ bool SdrObjEditView::EndMacroObj()
         ImpMacroUp(aMacroDownPos);
         SdrObjMacroHitRec aHitRec;
         aHitRec.aPos=aMacroDownPos;
-        aHitRec.aDownPos=aMacroDownPos;
         aHitRec.nTol=nMacroTol;
         aHitRec.pVisiLayer=&pMacroPV->GetVisibleLayers();
         aHitRec.pPageView=pMacroPV;
-        aHitRec.pOut=pMacroWin.get();
         bool bRet=pMacroObj->DoMacro(aHitRec);
         pMacroObj=nullptr;
         pMacroPV=nullptr;
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index d4f0448baf0b..554b3ce7f7fe 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -2033,7 +2033,6 @@ SdrObject* SdrMarkView::PickObj(const Point& rPnt, short nTol, SdrPageView*& rpP
         if (pObj!=nullptr && (nOptions & SdrSearchOptions::TESTMACRO)) {
             SdrObjMacroHitRec aHitRec;
             aHitRec.aPos=rPnt;
-            aHitRec.aDownPos=rPnt;
             aHitRec.nTol=nTol;
             aHitRec.pVisiLayer=&pPV->GetVisibleLayers();
             aHitRec.pPageView=pPV;
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx
index 74170fa2edb4..f183b888f0fc 100644
--- a/svx/source/svdraw/svdobj.cxx
+++ b/svx/source/svdraw/svdobj.cxx
@@ -149,7 +149,6 @@ void SdrObjUserCall::Changed(const SdrObject& /*rObj*/, SdrUserCallType /*eType*
 }
 
 SdrObjMacroHitRec::SdrObjMacroHitRec() :
-    pOut(nullptr),
     pVisiLayer(nullptr),
     pPageView(nullptr),
     nTol(0) {}
diff --git a/svx/source/svdraw/svdocirc.cxx b/svx/source/svdraw/svdocirc.cxx
index f31ee2d2f81a..29611e2315ba 100644
--- a/svx/source/svdraw/svdocirc.cxx
+++ b/svx/source/svdraw/svdocirc.cxx
@@ -378,7 +378,6 @@ struct ImpCircUser : public SdrDragStatUserData
     tools::Rectangle                   aR;
     Point                       aCenter;
     Point                       aP1;
-    Point                       aP2;
     long                        nHgt;
     long                        nWdt;
     long                        nStart;
@@ -654,7 +653,6 @@ void ImpCircUser::SetCreateParams(SdrDragStat const & rStat)
         }
         aP1 = GetAnglePnt(aR,nStart);
         nEnd=nStart;
-        aP2=aP1;
     } else aP1=aCenter;
     if (rStat.GetPointCount()>3) {
         Point aP(rStat.GetPoint(3)-aCenter);
@@ -673,8 +671,7 @@ void ImpCircUser::SetCreateParams(SdrDragStat const & rStat)
                 nEnd=NormAngle36000(nEnd);
             }
         }
-        aP2 = GetAnglePnt(aR,nEnd);
-    } else aP2=aCenter;
+    }
 }
 
 void SdrCircObj::ImpSetCreateParams(SdrDragStat& rStat)
diff --git a/svx/source/svdraw/svdomeas.cxx b/svx/source/svdraw/svdomeas.cxx
index e9da43ba2cde..91cacf12ea97 100644
--- a/svx/source/svdraw/svdomeas.cxx
+++ b/svx/source/svdraw/svdomeas.cxx
@@ -266,8 +266,6 @@ struct ImpMeasureRec : public SdrDragStatUserData
     bool                        bBelowRefEdge;
     bool                        bTextRota90;
     bool                        bTextUpsideDown;
-    Fraction                    aMeasureScale;
-    OUString                    aFormatString;
     bool                        bTextAutoAngle;
     long                        nTextAutoAngleView;
 };
@@ -321,8 +319,6 @@ void SdrMeasureObj::ImpTakeAttr(ImpMeasureRec& rRec) const
     rRec.bBelowRefEdge     =rSet.Get(SDRATTR_MEASUREBELOWREFEDGE    ).GetValue();
     rRec.bTextRota90       =rSet.Get(SDRATTR_MEASURETEXTROTA90      ).GetValue();
     rRec.bTextUpsideDown   =static_cast<const SdrMeasureTextUpsideDownItem&   >(rSet.Get(SDRATTR_MEASURETEXTUPSIDEDOWN  )).GetValue();
-    rRec.aMeasureScale     =rSet.Get(SDRATTR_MEASURESCALE           ).GetValue();
-    rRec.aFormatString     =rSet.Get(SDRATTR_MEASUREFORMATSTRING    ).GetValue();
     rRec.bTextAutoAngle    =rSet.Get(SDRATTR_MEASURETEXTAUTOANGLE    ).GetValue();
     rRec.nTextAutoAngleView=static_cast<const SdrMeasureTextAutoAngleViewItem&>(rSet.Get(SDRATTR_MEASURETEXTAUTOANGLEVIEW)).GetValue();
 }
diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx
index bdddaae54bb9..7c7f8289a053 100644
--- a/svx/source/svdraw/svdview.cxx
+++ b/svx/source/svdraw/svdview.cxx
@@ -420,7 +420,6 @@ SdrHitKind SdrView::PickAnything(const Point& rLogicPos, SdrViewEvent& rVEvt) co
         {
             SdrObjMacroHitRec aHitRec;
             aHitRec.aPos=aLocalLogicPosition;
-            aHitRec.aDownPos=aLocalLogicPosition;
             aHitRec.nTol=mnHitTolLog;
             aHitRec.pVisiLayer=&pPV->GetVisibleLayers();
             aHitRec.pPageView=pPV;
@@ -961,11 +960,9 @@ PointerStyle SdrView::GetPreferredPointer(const Point& rMousePos, const OutputDe
     if (IsMacroObj()) {
         SdrObjMacroHitRec aHitRec;
         aHitRec.aPos=pOut->LogicToPixel(rMousePos);
-        aHitRec.aDownPos=aMacroDownPos;
         aHitRec.nTol=nMacroTol;
         aHitRec.pVisiLayer=&pMacroPV->GetVisibleLayers();
         aHitRec.pPageView=pMacroPV;
-        aHitRec.pOut=pMacroWin.get();
         return pMacroObj->GetMacroPointer(aHitRec);
     }
 
@@ -1020,11 +1017,9 @@ PointerStyle SdrView::GetPreferredPointer(const Point& rMousePos, const OutputDe
         {
             SdrObjMacroHitRec aHitRec;
             aHitRec.aPos=aVEvt.aLogicPos;
-            aHitRec.aDownPos=aHitRec.aPos;
             aHitRec.nTol=mnHitTolLog;
             aHitRec.pVisiLayer=&aVEvt.pPV->GetVisibleLayers();
             aHitRec.pPageView=aVEvt.pPV;
-            aHitRec.pOut=const_cast<OutputDevice*>(pOut);
             return aVEvt.pObj->GetMacroPointer(aHitRec);
         }
         default: break;
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx
index bdf97d473321..7982ddced061 100644
--- a/svx/source/unodraw/unopage.cxx
+++ b/svx/source/unodraw/unopage.cxx
@@ -529,7 +529,6 @@ SdrObject* SvxDrawPage::CreateSdrObject_(const Reference< drawing::XShape > & xS
         basegfx::B3DPoint aCamPos(0.0, 0.0, 10000.0);
         aCam.SetPosAndLookAt(aCamPos, aLookAt);
         aCam.SetFocalLength(100.0);
-        aCam.SetDefaults(aCamPos, aLookAt);
         pScene->SetCamera(aCam);
 
         pScene->SetRectsDirty();
diff --git a/svx/source/unodraw/unoshap3.cxx b/svx/source/unodraw/unoshap3.cxx
index 571a1d74ffb5..394300ebae6d 100644
--- a/svx/source/unodraw/unoshap3.cxx
+++ b/svx/source/unodraw/unoshap3.cxx
@@ -317,7 +317,6 @@ bool Svx3DSceneObject::setPropertyValueImpl( const OUString& rName, const SfxIte
             basegfx::B3DPoint aCamPos(0.0, 0.0, fCamPosZ);
             aCam.SetPosAndLookAt(aCamPos, aLookAt);
             aCam.SetFocalLength(fCamFocal / 100.0);
-            aCam.SetDefaults(basegfx::B3DPoint(0.0, 0.0, fCamPosZ), aLookAt);
             aCam.SetDeviceWindow(tools::Rectangle(0, 0, static_cast<long>(fW), static_cast<long>(fH)));
 
             // set at scene


More information about the Libreoffice-commits mailing list