summaryrefslogtreecommitdiff
path: root/svx/source/engine3d
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-20 12:09:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-21 08:42:41 +0200
commit742c0838f29bd09505e2cb9ca35debf401c18c23 (patch)
treea224af9ead35435e613ac03c03ee0f74173c01e5 /svx/source/engine3d
parent528632660b72b105345945c13c5b68060d94a91b (diff)
loplugin:unusedfields in svx part1
Change-Id: I6621e0dda5a5dc3e68c7b1613975c075e2879912 Reviewed-on: https://gerrit.libreoffice.org/39006 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/engine3d')
-rw-r--r--svx/source/engine3d/obj3d.cxx5
-rw-r--r--svx/source/engine3d/view3d.cxx7
2 files changed, 0 insertions, 12 deletions
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<const XFillStyleItem&>(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;