diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-14 10:41:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-14 11:37:35 +0200 |
commit | 8303e7ed668fbcbd0ba75bd9dd259f03073ffd46 (patch) | |
tree | bfcbb0f58c0fd8cbd5c03d93fc5b1d4ab3ef817b /svgio | |
parent | a64692944a0a22feeef4a943d45137b25494cf64 (diff) |
loplugin:unusedfields improvements
tighten up the only calling write-only methods part of the analysis
Change-Id: I5bc6fdf0ce51940653317e8a48c5241705c90d4c
Reviewed-on: https://gerrit.libreoffice.org/74022
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio')
-rw-r--r-- | svgio/inc/svgsymbolnode.hxx | 6 | ||||
-rw-r--r-- | svgio/source/svgreader/svgsymbolnode.cxx | 7 |
2 files changed, 1 insertions, 12 deletions
diff --git a/svgio/inc/svgsymbolnode.hxx b/svgio/inc/svgsymbolnode.hxx index 7cb2ac739555..555eabb2f99a 100644 --- a/svgio/inc/svgsymbolnode.hxx +++ b/svgio/inc/svgsymbolnode.hxx @@ -33,9 +33,6 @@ namespace svgio /// use styles SvgStyleAttributes maSvgStyleAttributes; - /// variable scan values, dependent of given XAttributeList - std::unique_ptr<basegfx::B2DRange> - mpViewBox; SvgAspectRatio maSvgAspectRatio; public: @@ -46,9 +43,6 @@ namespace svgio virtual const SvgStyleAttributes* getSvgStyleAttributes() const override; virtual void parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent) override; - - /// viewBox content - void setViewBox(const basegfx::B2DRange* pViewBox) { mpViewBox.reset(); if(pViewBox) mpViewBox.reset( new basegfx::B2DRange(*pViewBox) ); } }; } // end of namespace svgreader } // end of namespace svgio diff --git a/svgio/source/svgreader/svgsymbolnode.cxx b/svgio/source/svgreader/svgsymbolnode.cxx index 632067e8f954..45228cd8f37e 100644 --- a/svgio/source/svgreader/svgsymbolnode.cxx +++ b/svgio/source/svgreader/svgsymbolnode.cxx @@ -61,12 +61,7 @@ namespace svgio } case SVGTokenViewBox: { - const basegfx::B2DRange aRange(readViewBox(aContent, *this)); - - if(!aRange.isEmpty()) - { - setViewBox(&aRange); - } + readViewBox(aContent, *this); break; } case SVGTokenPreserveAspectRatio: |