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
/// 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; }
......
......@@ -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
......
......@@ -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; }
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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; }
......
......@@ -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
......
......@@ -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())
......
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