From 742c0838f29bd09505e2cb9ca35debf401c18c23 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 20 Jun 2017 12:09:51 +0200 Subject: loplugin:unusedfields in svx part1 Change-Id: I6621e0dda5a5dc3e68c7b1613975c075e2879912 Reviewed-on: https://gerrit.libreoffice.org/39006 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/engine3d/obj3d.cxx | 5 ----- svx/source/engine3d/view3d.cxx | 7 ------- 2 files changed, 12 deletions(-) (limited to 'svx/source/engine3d') diff --git a/svx/source/engine3d/obj3d.cxx b/svx/source/engine3d/obj3d.cxx index 52b553d50d30..a16935602c15 100644 --- a/svx/source/engine3d/obj3d.cxx +++ b/svx/source/engine3d/obj3d.cxx @@ -270,11 +270,6 @@ void E3dObject::TakeObjInfo(SdrObjTransformInfoRec& rInfo) const // no transparence for 3d objects rInfo.bTransparenceAllowed = false; - // gradient depends on fillstyle - // BM *** check if SetItem is NULL *** - drawing::FillStyle eFillStyle = static_cast(GetMergedItem(XATTR_FILLSTYLE)).GetValue(); - rInfo.bGradientAllowed = (eFillStyle == drawing::FillStyle_GRADIENT); - // Convert 3D objects in a group of polygons: // At first not only possible, because the creation of a group of // 2D polygons would be required which need to be sorted by depth, diff --git a/svx/source/engine3d/view3d.cxx b/svx/source/engine3d/view3d.cxx index 9540d3f1cd52..0995dd13f7f2 100644 --- a/svx/source/engine3d/view3d.cxx +++ b/svx/source/engine3d/view3d.cxx @@ -1514,17 +1514,10 @@ void E3dView::ResetCreationActive () void E3dView::InitView () { eDragConstraint = E3dDragConstraint::XYZ; - fDefaultScaleX = fDefaultScaleY = fDefaultScaleZ = 1.0; - fDefaultRotateX = fDefaultRotateY = fDefaultRotateZ = 0.0; - fDefaultExtrusionDeepth = 1000; // old: 2000; - fDefaultLightIntensity = 0.8; // old: 0.6; - fDefaultAmbientIntensity = 0.4; - nHDefaultSegments = 12; - nVDefaultSegments = 12; aDefaultLightColor = RGB_Color(COL_WHITE); aDefaultAmbientColor = RGB_Color(COL_BLACK); mpMirrorOverlay = nullptr; -- cgit