From 19156dccf7040094ce682081545213abb321c559 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 10 May 2018 11:41:57 +0200 Subject: loplugin:datamembershadow in DXF filter depending on which version of the DXF file format you look at, elevation can be either group code 30 or group code 38. But since neither of these fields is actually in use, lets just remove both until someone has an actual use-case for them and can test against real data. Change-Id: I4355b37c4b8513e8f9704272b269b2fe3f1c659f Reviewed-on: https://gerrit.libreoffice.org/54104 Tested-by: Jenkins Reviewed-by: Noel Grandin --- filter/source/graphicfilter/idxf/dxfentrd.cxx | 4 ---- filter/source/graphicfilter/idxf/dxfentrd.hxx | 2 -- 2 files changed, 6 deletions(-) (limited to 'filter/source') diff --git a/filter/source/graphicfilter/idxf/dxfentrd.cxx b/filter/source/graphicfilter/idxf/dxfentrd.cxx index 7a9074a0a770..bcb698994831 100644 --- a/filter/source/graphicfilter/idxf/dxfentrd.cxx +++ b/filter/source/graphicfilter/idxf/dxfentrd.cxx @@ -29,7 +29,6 @@ DXFBasicEntity::DXFBasicEntity(DXFEntityType eThisType) { eType=eThisType; pSucc=nullptr; - fElevation=0; fThickness=0; nColor=256; nSpace=0; @@ -49,7 +48,6 @@ void DXFBasicEntity::EvaluateGroup(DXFGroupReader & rDGR) { case 8: m_sLayer = rDGR.GetS(); break; case 6: m_sLineType = rDGR.GetS(); break; - case 38: fElevation=rDGR.GetF(); break; case 39: fThickness=rDGR.GetF(); break; case 62: nColor=rDGR.GetI(); break; case 67: nSpace=rDGR.GetI(); break; @@ -374,7 +372,6 @@ void DXFAttribEntity::EvaluateGroup(DXFGroupReader & rDGR) DXFPolyLineEntity::DXFPolyLineEntity() : DXFBasicEntity(DXF_POLYLINE) { - fElevation=0.0; nFlags=0; fSWidth=0.0; fEWidth=0.0; @@ -388,7 +385,6 @@ DXFPolyLineEntity::DXFPolyLineEntity() : DXFBasicEntity(DXF_POLYLINE) void DXFPolyLineEntity::EvaluateGroup(DXFGroupReader & rDGR) { switch (rDGR.GetG()) { - case 30: fElevation=rDGR.GetF(); break; case 70: nFlags=rDGR.GetI(); break; case 40: fSWidth=rDGR.GetF(); break; case 41: fEWidth=rDGR.GetF(); break; diff --git a/filter/source/graphicfilter/idxf/dxfentrd.hxx b/filter/source/graphicfilter/idxf/dxfentrd.hxx index 39d9b12fbff6..f2aa8d3c90aa 100644 --- a/filter/source/graphicfilter/idxf/dxfentrd.hxx +++ b/filter/source/graphicfilter/idxf/dxfentrd.hxx @@ -64,7 +64,6 @@ public: // commented with group codes: OString m_sLayer; // 8 OString m_sLineType; // 6 - double fElevation; // 38 double fThickness; // 39 long nColor; // 62 long nSpace; // 67 @@ -304,7 +303,6 @@ class DXFPolyLineEntity : public DXFBasicEntity { public: - double fElevation; // 30 long nFlags; // 70 double fSWidth; // 40 double fEWidth; // 41 -- cgit v1.2.3