From 77e9216ca1073caa0dcec23ef89808cc7f80fc06 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 3 Oct 2019 10:53:58 +0200 Subject: loplugin:unusedfields and filter out the weld fields, since we're not touching them yet Change-Id: I3cc23c46d2650f13cb29c7d381687939d23e2882 Reviewed-on: https://gerrit.libreoffice.org/80104 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svgio/source/svgreader/svgstyleattributes.cxx | 28 ++++----------------------- 1 file changed, 4 insertions(+), 24 deletions(-) (limited to 'svgio/source') diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx index 232202927a76..502fe6991dd3 100644 --- a/svgio/source/svgreader/svgstyleattributes.cxx +++ b/svgio/source/svgreader/svgstyleattributes.cxx @@ -1256,10 +1256,6 @@ namespace svgio maStopColor(basegfx::BColor(0.0, 0.0, 0.0), true), maStrokeWidth(), maStopOpacity(), - mpSvgGradientNodeFill(nullptr), - mpSvgGradientNodeStroke(nullptr), - mpSvgPatternNodeFill(nullptr), - mpSvgPatternNodeStroke(nullptr), maFillOpacity(), maStrokeDasharray(), maStrokeDashOffset(), @@ -2095,11 +2091,7 @@ namespace svgio const SvgGradientNode* SvgStyleAttributes::getSvgGradientNodeFill() const { - if(mpSvgGradientNodeFill) - { - return mpSvgGradientNodeFill; - } - else if (!maFill.isSet() && !mpSvgPatternNodeFill) + if (!maFill.isSet()) { if (!maNodeFillURL.isEmpty()) { @@ -2129,11 +2121,7 @@ namespace svgio const SvgGradientNode* SvgStyleAttributes::getSvgGradientNodeStroke() const { - if(mpSvgGradientNodeStroke) - { - return mpSvgGradientNodeStroke; - } - else if (!maStroke.isSet() && !mpSvgPatternNodeStroke) + if (!maStroke.isSet()) { if(!maNodeStrokeURL.isEmpty()) { @@ -2164,11 +2152,7 @@ namespace svgio const SvgPatternNode* SvgStyleAttributes::getSvgPatternNodeFill() const { - if(mpSvgPatternNodeFill) - { - return mpSvgPatternNodeFill; - } - else if (!maFill.isSet() && !mpSvgGradientNodeFill) + if (!maFill.isSet()) { if (!maNodeFillURL.isEmpty()) { @@ -2199,11 +2183,7 @@ namespace svgio const SvgPatternNode* SvgStyleAttributes::getSvgPatternNodeStroke() const { - if(mpSvgPatternNodeStroke) - { - return mpSvgPatternNodeStroke; - } - else if (!maStroke.isSet() && !mpSvgGradientNodeStroke) + if (!maStroke.isSet()) { if(!maNodeStrokeURL.isEmpty()) { -- cgit