summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-03 10:53:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-03 12:16:38 +0200
commit77e9216ca1073caa0dcec23ef89808cc7f80fc06 (patch)
tree71ea2c3841f1a1017123dec44552239d74fd7a4a /svgio
parent81903d443116c643a9ff92d92c092812abc7f57d (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio')
-rw-r--r--svgio/inc/svgstyleattributes.hxx4
-rw-r--r--svgio/source/svgreader/svgstyleattributes.cxx28
2 files changed, 4 insertions, 28 deletions
diff --git a/svgio/inc/svgstyleattributes.hxx b/svgio/inc/svgstyleattributes.hxx
index 5c89295dec0a..3a3ac670b962 100644
--- a/svgio/inc/svgstyleattributes.hxx
+++ b/svgio/inc/svgstyleattributes.hxx
@@ -182,10 +182,6 @@ namespace svgio
SvgPaint maStopColor;
SvgNumber maStrokeWidth;
SvgNumber maStopOpacity;
- const SvgGradientNode* mpSvgGradientNodeFill;
- const SvgGradientNode* mpSvgGradientNodeStroke;
- const SvgPatternNode* mpSvgPatternNodeFill;
- const SvgPatternNode* mpSvgPatternNodeStroke;
SvgNumber maFillOpacity;
SvgNumberVector maStrokeDasharray;
SvgNumber maStrokeDashOffset;
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())
{