Kaydet (Commit) ee79541a authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

loplugin:unusedmethods svgio

Change-Id: I0dd601429b70dc09780e31079a6f7c0570652fe9
Reviewed-on: https://gerrit.libreoffice.org/17114Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 91f41ac7
...@@ -101,7 +101,6 @@ namespace svgio ...@@ -101,7 +101,6 @@ namespace svgio
/// bitfield /// bitfield
bool mbLengthAdjust : 1; // true = spacing, false = spacingAndGlyphs bool mbLengthAdjust : 1; // true = spacing, false = spacingAndGlyphs
bool mbAbsoluteX : 1; bool mbAbsoluteX : 1;
bool mbAbsoluteY : 1;
public: public:
SvgTextPosition( SvgTextPosition(
...@@ -112,11 +111,9 @@ namespace svgio ...@@ -112,11 +111,9 @@ namespace svgio
// data read access // data read access
const SvgTextPosition* getParent() const { return mpParent; } const SvgTextPosition* getParent() const { return mpParent; }
const ::std::vector< double >& getX() const { return maX; } const ::std::vector< double >& getX() const { return maX; }
const ::std::vector< double >& getY() const { return maY; }
double getTextLength() const { return mfTextLength; } double getTextLength() const { return mfTextLength; }
bool getLengthAdjust() const { return mbLengthAdjust; } bool getLengthAdjust() const { return mbLengthAdjust; }
bool getAbsoluteX() const { return mbAbsoluteX; } bool getAbsoluteX() const { return mbAbsoluteX; }
bool getAbsoluteY() const { return mbAbsoluteY; }
// get/set absolute, current, advancing position // get/set absolute, current, advancing position
const basegfx::B2DPoint& getPosition() const { return maPosition; } const basegfx::B2DPoint& getPosition() const { return maPosition; }
......
...@@ -61,7 +61,6 @@ namespace svgio ...@@ -61,7 +61,6 @@ namespace svgio
void removeSvgNodeFromMapper(const OUString& rStr); void removeSvgNodeFromMapper(const OUString& rStr);
/// find a node by its Id /// find a node by its Id
bool hasSvgNodesById() const { return !maIdTokenMapperList.empty(); }
const SvgNode* findSvgNodeById(const OUString& rStr) const; const SvgNode* findSvgNodeById(const OUString& rStr) const;
/// add/remove styles to mapper /// add/remove styles to mapper
......
...@@ -335,7 +335,6 @@ namespace svgio ...@@ -335,7 +335,6 @@ namespace svgio
/// fill rule content /// fill rule content
FillRule getFillRule() const; FillRule getFillRule() const;
void setFillRule(const FillRule aFillRule = FillRule_notset) { maFillRule = aFillRule; }
/// fill StrokeDasharray content /// fill StrokeDasharray content
const SvgNumberVector& getStrokeDasharray() const; const SvgNumberVector& getStrokeDasharray() const;
...@@ -382,7 +381,6 @@ namespace svgio ...@@ -382,7 +381,6 @@ namespace svgio
void setFontStyle(const FontStyle aFontStyle = FontStyle_notset) { maFontStyle = aFontStyle; } void setFontStyle(const FontStyle aFontStyle = FontStyle_notset) { maFontStyle = aFontStyle; }
/// FontVariant content /// FontVariant content
FontVariant getFontVariant() const;
void setFontVariant(const FontVariant aFontVariant = FontVariant_notset) { maFontVariant = aFontVariant; } void setFontVariant(const FontVariant aFontVariant = FontVariant_notset) { maFontVariant = aFontVariant; }
/// FontWeight content /// FontWeight content
...@@ -427,26 +425,21 @@ namespace svgio ...@@ -427,26 +425,21 @@ namespace svgio
// ClipPathXLink content // ClipPathXLink content
const OUString getClipPathXLink() const { return maClipPathXLink; } const OUString getClipPathXLink() const { return maClipPathXLink; }
void setClipPathXLink(const OUString& rNew) { maClipPathXLink = rNew; }
// MaskXLink content // MaskXLink content
const OUString getMaskXLink() const { return maMaskXLink; } const OUString getMaskXLink() const { return maMaskXLink; }
void setMaskXLink(const OUString& rNew) { maMaskXLink = rNew; }
// MarkerStartXLink content // MarkerStartXLink content
OUString getMarkerStartXLink() const; OUString getMarkerStartXLink() const;
const SvgMarkerNode* accessMarkerStartXLink() const; const SvgMarkerNode* accessMarkerStartXLink() const;
void setMarkerStartXLink(const OUString& rNew) { maMarkerStartXLink = rNew; }
// MarkerMidXLink content // MarkerMidXLink content
OUString getMarkerMidXLink() const; OUString getMarkerMidXLink() const;
const SvgMarkerNode* accessMarkerMidXLink() const; const SvgMarkerNode* accessMarkerMidXLink() const;
void setMarkerMidXLink(const OUString& rNew) { maMarkerMidXLink = rNew; }
// MarkerEndXLink content // MarkerEndXLink content
OUString getMarkerEndXLink() const; OUString getMarkerEndXLink() const;
const SvgMarkerNode* accessMarkerEndXLink() const; const SvgMarkerNode* accessMarkerEndXLink() const;
void setMarkerEndXLink(const OUString& rNew) { maMarkerEndXLink = rNew; }
// BaselineShift // BaselineShift
void setBaselineShift(const BaselineShift aBaselineShift = BaselineShift_Baseline) { maBaselineShift = aBaselineShift; } void setBaselineShift(const BaselineShift aBaselineShift = BaselineShift_Baseline) { maBaselineShift = aBaselineShift; }
......
...@@ -94,7 +94,6 @@ namespace svgio ...@@ -94,7 +94,6 @@ namespace svgio
void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; } void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; }
/// version content /// version content
const SvgNumber& getVersion() const { return maVersion; }
void setVersion(const SvgNumber& rVersion = SvgNumber()) { maVersion = rVersion; } void setVersion(const SvgNumber& rVersion = SvgNumber()) { maVersion = rVersion; }
}; };
} // end of namespace svgreader } // end of namespace svgreader
......
...@@ -46,11 +46,9 @@ namespace svgio ...@@ -46,11 +46,9 @@ namespace svgio
virtual void parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent) SAL_OVERRIDE; virtual void parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent) SAL_OVERRIDE;
/// viewBox content /// 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); } void setViewBox(const basegfx::B2DRange* pViewBox = 0) { if(mpViewBox) delete mpViewBox; mpViewBox = 0; if(pViewBox) mpViewBox = new basegfx::B2DRange(*pViewBox); }
/// SvgAspectRatio content /// SvgAspectRatio content
const SvgAspectRatio& getSvgAspectRatio() const { return maSvgAspectRatio; }
void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio = SvgAspectRatio()) { maSvgAspectRatio = rSvgAspectRatio; } void setSvgAspectRatio(const SvgAspectRatio& rSvgAspectRatio = SvgAspectRatio()) { maSvgAspectRatio = rSvgAspectRatio; }
}; };
} // end of namespace svgreader } // end of namespace svgreader
......
...@@ -64,11 +64,9 @@ namespace svgio ...@@ -64,11 +64,9 @@ namespace svgio
void setStartOffset(const SvgNumber& rStartOffset = SvgNumber()) { maStartOffset = rStartOffset; } void setStartOffset(const SvgNumber& rStartOffset = SvgNumber()) { maStartOffset = rStartOffset; }
/// Method content /// Method content
bool getMethod() const { return mbMethod; }
void setMethod(bool bNew) { mbMethod = bNew; } void setMethod(bool bNew) { mbMethod = bNew; }
/// Spacing content /// Spacing content
bool getSpacing() const { return mbSpacing; }
void setSpacing(bool bNew) { mbSpacing = bNew; } void setSpacing(bool bNew) { mbSpacing = bNew; }
}; };
} // end of namespace svgreader } // end of namespace svgreader
......
...@@ -180,7 +180,6 @@ namespace svgio ...@@ -180,7 +180,6 @@ namespace svgio
/// data read access /// data read access
SvgAlign getSvgAlign() const { return maSvgAlign; } SvgAlign getSvgAlign() const { return maSvgAlign; }
bool isDefer() const { return mbDefer; }
bool isMeetOrSlice() const { return mbMeetOrSlice; } bool isMeetOrSlice() const { return mbMeetOrSlice; }
bool isSet() const { return mbSet; } bool isSet() const { return mbSet; }
......
...@@ -67,11 +67,9 @@ namespace svgio ...@@ -67,11 +67,9 @@ namespace svgio
void setY(const SvgNumber& rY = SvgNumber()) { maY = rY; } void setY(const SvgNumber& rY = SvgNumber()) { maY = rY; }
/// width content /// width content
const SvgNumber& getWidth() const { return maWidth; }
void setWidth(const SvgNumber& rWidth = SvgNumber()) { maWidth = rWidth; } void setWidth(const SvgNumber& rWidth = SvgNumber()) { maWidth = rWidth; }
/// height content /// height content
const SvgNumber& getHeight() const { return maHeight; }
void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; } void setHeight(const SvgNumber& rHeight = SvgNumber()) { maHeight = rHeight; }
}; };
} // end of namespace svgreader } // end of namespace svgreader
......
...@@ -600,8 +600,7 @@ namespace svgio ...@@ -600,8 +600,7 @@ namespace svgio
maPosition(), // computed below maPosition(), // computed below
mnRotationIndex(0), mnRotationIndex(0),
mbLengthAdjust(rSvgTextPositions.getLengthAdjust()), mbLengthAdjust(rSvgTextPositions.getLengthAdjust()),
mbAbsoluteX(false), mbAbsoluteX(false)
mbAbsoluteY(false)
{ {
// get TextLength if provided // get TextLength if provided
if(rSvgTextPositions.getTextLength().isSet()) if(rSvgTextPositions.getTextLength().isSet())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment