summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-20 19:54:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-21 08:43:05 +0200
commit18f513145477d4621290253d936dad7a40ee4c05 (patch)
tree488acddc766727dc28c28c026c9bc2a2a5e10900 /svgio
parent742c0838f29bd09505e2cb9ca35debf401c18c23 (diff)
loplugin:unusedfields store..svl
Change-Id: I6070a683e5128271b84a10caccb548d07c950927 Reviewed-on: https://gerrit.libreoffice.org/39021 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio')
-rw-r--r--svgio/inc/svgstyleattributes.hxx4
-rw-r--r--svgio/inc/svgtextpathnode.hxx9
-rw-r--r--svgio/source/svgreader/svgstyleattributes.cxx12
-rw-r--r--svgio/source/svgreader/svgtextpathnode.cxx26
4 files changed, 1 insertions, 50 deletions
diff --git a/svgio/inc/svgstyleattributes.hxx b/svgio/inc/svgstyleattributes.hxx
index b9f655eba3d2..ab9b0479bf13 100644
--- a/svgio/inc/svgstyleattributes.hxx
+++ b/svgio/inc/svgstyleattributes.hxx
@@ -204,7 +204,6 @@ namespace svgio
SvgNumber maFontSizeNumber;
FontStretch maFontStretch;
FontStyle maFontStyle;
- FontVariant maFontVariant;
FontWeight maFontWeight;
TextAlign maTextAlign;
TextDecoration maTextDecoration;
@@ -381,9 +380,6 @@ namespace svgio
FontStyle getFontStyle() const;
void setFontStyle(const FontStyle aFontStyle) { maFontStyle = aFontStyle; }
- /// FontVariant content
- void setFontVariant(const FontVariant aFontVariant) { maFontVariant = aFontVariant; }
-
/// FontWeight content
FontWeight getFontWeight() const;
void setFontWeight(const FontWeight aFontWeight) { maFontWeight = aFontWeight; }
diff --git a/svgio/inc/svgtextpathnode.hxx b/svgio/inc/svgtextpathnode.hxx
index 39876511ec99..a0aa9b05270b 100644
--- a/svgio/inc/svgtextpathnode.hxx
+++ b/svgio/inc/svgtextpathnode.hxx
@@ -41,9 +41,6 @@ namespace svgio
/// variable scan values, dependent of given XAttributeList
SvgNumber maStartOffset;
- bool mbMethod : 1; // true = align, false = stretch
- bool mbSpacing : 1; // true = auto, false = exact
-
public:
SvgTextPathNode(
SvgDocument& rDocument,
@@ -60,12 +57,6 @@ namespace svgio
/// StartOffset content
const SvgNumber& getStartOffset() const { return maStartOffset; }
-
- /// Method content
- void setMethod(bool bNew) { mbMethod = bNew; }
-
- /// Spacing content
- void setSpacing(bool bNew) { mbSpacing = bNew; }
};
} // end of namespace svgreader
} // end of namespace svgio
diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx
index 15abeb022ff1..19e2bfd9bb91 100644
--- a/svgio/source/svgreader/svgstyleattributes.cxx
+++ b/svgio/source/svgreader/svgstyleattributes.cxx
@@ -1230,7 +1230,6 @@ namespace svgio
maFontSizeNumber(),
maFontStretch(FontStretch_notset),
maFontStyle(FontStyle_notset),
- maFontVariant(FontVariant_notset),
maFontWeight(FontWeight_notset),
maTextAlign(TextAlign_notset),
maTextDecoration(TextDecoration_notset),
@@ -1651,17 +1650,6 @@ namespace svgio
}
case SVGTokenFontVariant:
{
- if(!aContent.isEmpty())
- {
- if(aContent.startsWith("normal"))
- {
- setFontVariant(FontVariant_normal);
- }
- else if(aContent.startsWith("small-caps"))
- {
- setFontVariant(FontVariant_small_caps);
- }
- }
break;
}
case SVGTokenFontWeight:
diff --git a/svgio/source/svgreader/svgtextpathnode.cxx b/svgio/source/svgreader/svgtextpathnode.cxx
index 0ac0457a174b..e9b00eb2ddec 100644
--- a/svgio/source/svgreader/svgtextpathnode.cxx
+++ b/svgio/source/svgreader/svgtextpathnode.cxx
@@ -251,9 +251,7 @@ namespace svgio
: SvgNode(SVGTokenTextPath, rDocument, pParent),
maSvgStyleAttributes(*this),
maXLink(),
- maStartOffset(),
- mbMethod(true),
- mbSpacing(false)
+ maStartOffset()
{
}
@@ -297,32 +295,10 @@ namespace svgio
}
case SVGTokenMethod:
{
- if(!aContent.isEmpty())
- {
- if(aContent.startsWith("align"))
- {
- setMethod(true);
- }
- else if(aContent.startsWith("stretch"))
- {
- setMethod(false);
- }
- }
break;
}
case SVGTokenSpacing:
{
- if(!aContent.isEmpty())
- {
- if(aContent.startsWith("auto"))
- {
- setSpacing(true);
- }
- else if(aContent.startsWith("exact"))
- {
- setSpacing(false);
- }
- }
break;
}
case SVGTokenXlinkHref: