[Libreoffice-commits] core.git: svgio/inc svgio/source

Noel Grandin noel at peralex.com
Thu Jul 16 00:50:50 PDT 2015


 svgio/inc/svgio/svgreader/svgcharacternode.hxx   |    3 ---
 svgio/inc/svgio/svgreader/svgdocument.hxx        |    1 -
 svgio/inc/svgio/svgreader/svgstyleattributes.hxx |    7 -------
 svgio/inc/svgio/svgreader/svgsvgnode.hxx         |    1 -
 svgio/inc/svgio/svgreader/svgsymbolnode.hxx      |    2 --
 svgio/inc/svgio/svgreader/svgtextpathnode.hxx    |    2 --
 svgio/inc/svgio/svgreader/svgtools.hxx           |    1 -
 svgio/inc/svgio/svgreader/svgusenode.hxx         |    2 --
 svgio/source/svgreader/svgcharacternode.cxx      |    3 +--
 9 files changed, 1 insertion(+), 21 deletions(-)

New commits:
commit ee79541aa892ff218e1dc3f869a3ac11b6f296ba
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Jul 15 15:28:37 2015 +0200

    loplugin:unusedmethods svgio
    
    Change-Id: I0dd601429b70dc09780e31079a6f7c0570652fe9
    Reviewed-on: https://gerrit.libreoffice.org/17114
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
    Tested-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/svgio/inc/svgio/svgreader/svgcharacternode.hxx b/svgio/inc/svgio/svgreader/svgcharacternode.hxx
index 192f24d..23d7809 100644
--- a/svgio/inc/svgio/svgreader/svgcharacternode.hxx
+++ b/svgio/inc/svgio/svgreader/svgcharacternode.hxx
@@ -101,7 +101,6 @@ namespace svgio
             /// bitfield
             bool                        mbLengthAdjust : 1; // true = spacing, false = spacingAndGlyphs
             bool                        mbAbsoluteX : 1;
-            bool                        mbAbsoluteY : 1;
 
         public:
             SvgTextPosition(
@@ -112,11 +111,9 @@ namespace svgio
             // data read access
             const SvgTextPosition* getParent() const { return mpParent; }
             const ::std::vector< double >& getX() const { return maX; }
-            const ::std::vector< double >& getY() const { return maY; }
             double getTextLength() const { return mfTextLength; }
             bool getLengthAdjust() const { return mbLengthAdjust; }
             bool getAbsoluteX() const { return mbAbsoluteX; }
-            bool getAbsoluteY() const { return mbAbsoluteY; }
 
             // get/set absolute, current, advancing position
             const basegfx::B2DPoint& getPosition() const { return maPosition; }
diff --git a/svgio/inc/svgio/svgreader/svgdocument.hxx b/svgio/inc/svgio/svgreader/svgdocument.hxx
index e0d0141..46aee7a 100644
--- a/svgio/inc/svgio/svgreader/svgdocument.hxx
+++ b/svgio/inc/svgio/svgreader/svgdocument.hxx
@@ -61,7 +61,6 @@ namespace svgio
             void removeSvgNodeFromMapper(const OUString& rStr);
 
             /// find a node by its Id
-            bool hasSvgNodesById() const { return !maIdTokenMapperList.empty(); }
             const SvgNode* findSvgNodeById(const OUString& rStr) const;
 
             /// add/remove styles to mapper
diff --git a/svgio/inc/svgio/svgreader/svgstyleattributes.hxx b/svgio/inc/svgio/svgreader/svgstyleattributes.hxx
index 5a67aa1..cb1982d 100644
--- a/svgio/inc/svgio/svgreader/svgstyleattributes.hxx
+++ b/svgio/inc/svgio/svgreader/svgstyleattributes.hxx
@@ -335,7 +335,6 @@ namespace svgio
 
             /// fill rule content
             FillRule getFillRule() const;
-            void setFillRule(const FillRule aFillRule = FillRule_notset) { maFillRule = aFillRule; }
 
             /// fill StrokeDasharray content
             const SvgNumberVector& getStrokeDasharray() const;
@@ -382,7 +381,6 @@ namespace svgio
             void setFontStyle(const FontStyle aFontStyle = FontStyle_notset) { maFontStyle = aFontStyle; }
 
             /// FontVariant content
-            FontVariant getFontVariant() const;
             void setFontVariant(const FontVariant aFontVariant = FontVariant_notset) { maFontVariant = aFontVariant; }
 
             /// FontWeight content
@@ -427,26 +425,21 @@ namespace svgio
 
             // ClipPathXLink content
             const OUString getClipPathXLink() const { return maClipPathXLink; }
-            void setClipPathXLink(const OUString& rNew) { maClipPathXLink = rNew; }
 
             // MaskXLink content
             const OUString getMaskXLink() const { return maMaskXLink; }
-            void setMaskXLink(const OUString& rNew) { maMaskXLink = rNew; }
 
             // MarkerStartXLink content
             OUString getMarkerStartXLink() const;
             const SvgMarkerNode* accessMarkerStartXLink() const;
-            void setMarkerStartXLink(const OUString& rNew) { maMarkerStartXLink = rNew; }
 
             // MarkerMidXLink content
             OUString getMarkerMidXLink() const;
             const SvgMarkerNode* accessMarkerMidXLink() const;
-            void setMarkerMidXLink(const OUString& rNew) { maMarkerMidXLink = rNew; }
 
             // MarkerEndXLink content
             OUString getMarkerEndXLink() const;
             const SvgMarkerNode* accessMarkerEndXLink() const;
-            void setMarkerEndXLink(const OUString& rNew) { maMarkerEndXLink = rNew; }
 
             // BaselineShift
             void setBaselineShift(const BaselineShift aBaselineShift = BaselineShift_Baseline) { maBaselineShift = aBaselineShift; }
diff --git a/svgio/inc/svgio/svgreader/svgsvgnode.hxx b/svgio/inc/svgio/svgreader/svgsvgnode.hxx
index 4a36bf8..0ad83bc 100644
--- a/svgio/inc/svgio/svgreader/svgsvgnode.hxx
+++ b/svgio/inc/svgio/svgreader/svgsvgnode.hxx
@@ -94,7 +94,6 @@ namespace svgio
             void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; }
 
             /// version content
-            const SvgNumber& getVersion() const { return maVersion; }
             void setVersion(const SvgNumber& rVersion = SvgNumber()) { maVersion = rVersion; }
         };
     } // end of namespace svgreader
diff --git a/svgio/inc/svgio/svgreader/svgsymbolnode.hxx b/svgio/inc/svgio/svgreader/svgsymbolnode.hxx
index 86c1e70..8e6157c 100644
--- a/svgio/inc/svgio/svgreader/svgsymbolnode.hxx
+++ b/svgio/inc/svgio/svgreader/svgsymbolnode.hxx
@@ -46,11 +46,9 @@ namespace svgio
             virtual void parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent) SAL_OVERRIDE;
 
             /// viewBox content
-            const basegfx::B2DRange* getViewBox() const { return mpViewBox; }
             void setViewBox(const basegfx::B2DRange* pViewBox = 0) { if(mpViewBox) delete mpViewBox; mpViewBox = 0; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); }
 
             /// SvgAspectRatio content
-            const SvgAspectRatio& getSvgAspectRatio() const { return maSvgAspectRatio; }
             void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio = SvgAspectRatio()) { maSvgAspectRatio = rSvgAspectRatio; }
         };
     } // end of namespace svgreader
diff --git a/svgio/inc/svgio/svgreader/svgtextpathnode.hxx b/svgio/inc/svgio/svgreader/svgtextpathnode.hxx
index 94d659f..ce6a2a0 100644
--- a/svgio/inc/svgio/svgreader/svgtextpathnode.hxx
+++ b/svgio/inc/svgio/svgreader/svgtextpathnode.hxx
@@ -64,11 +64,9 @@ namespace svgio
             void setStartOffset(const SvgNumber& rStartOffset = SvgNumber()) { maStartOffset = rStartOffset; }
 
             /// Method content
-            bool getMethod() const { return mbMethod; }
             void setMethod(bool bNew) { mbMethod = bNew; }
 
             /// Spacing content
-            bool getSpacing() const { return mbSpacing; }
             void setSpacing(bool bNew) { mbSpacing = bNew; }
         };
     } // end of namespace svgreader
diff --git a/svgio/inc/svgio/svgreader/svgtools.hxx b/svgio/inc/svgio/svgreader/svgtools.hxx
index 5fc6c3b..71fee9e 100644
--- a/svgio/inc/svgio/svgreader/svgtools.hxx
+++ b/svgio/inc/svgio/svgreader/svgtools.hxx
@@ -180,7 +180,6 @@ namespace svgio
 
             /// data read access
             SvgAlign getSvgAlign() const { return maSvgAlign; }
-            bool isDefer() const { return mbDefer; }
             bool isMeetOrSlice() const { return mbMeetOrSlice; }
             bool isSet() const { return mbSet; }
 
diff --git a/svgio/inc/svgio/svgreader/svgusenode.hxx b/svgio/inc/svgio/svgreader/svgusenode.hxx
index 8e9a6d1..fe6517a 100644
--- a/svgio/inc/svgio/svgreader/svgusenode.hxx
+++ b/svgio/inc/svgio/svgreader/svgusenode.hxx
@@ -67,11 +67,9 @@ namespace svgio
             void setY(const SvgNumber& rY = SvgNumber()) { maY = rY; }
 
             /// width content
-            const SvgNumber& getWidth() const { return maWidth; }
             void setWidth(const SvgNumber& rWidth = SvgNumber()) { maWidth = rWidth; }
 
             /// height content
-            const SvgNumber& getHeight() const { return maHeight; }
             void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; }
         };
     } // end of namespace svgreader
diff --git a/svgio/source/svgreader/svgcharacternode.cxx b/svgio/source/svgreader/svgcharacternode.cxx
index 9dcaba7..411518b 100644
--- a/svgio/source/svgreader/svgcharacternode.cxx
+++ b/svgio/source/svgreader/svgcharacternode.cxx
@@ -600,8 +600,7 @@ namespace svgio
             maPosition(), // computed below
             mnRotationIndex(0),
             mbLengthAdjust(rSvgTextPositions.getLengthAdjust()),
-            mbAbsoluteX(false),
-            mbAbsoluteY(false)
+            mbAbsoluteX(false)
         {
             // get TextLength if provided
             if(rSvgTextPositions.getTextLength().isSet())


More information about the Libreoffice-commits mailing list