diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-03 11:27:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-03 11:09:46 +0000 |
commit | 2675f26f1a155257bd1680a1e1a1ba58da8c4452 (patch) | |
tree | 5227b9c07962e01d64419898833d8418c3d4f9e0 /svx | |
parent | f210499af1a6889785d49f8881672324afc755c1 (diff) |
remove unused CreateDefault methods
Change-Id: Ifbdd7d41f0938e9a03693f88416792ff8087f8c2
Reviewed-on: https://gerrit.libreoffice.org/34850
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/items/algitem.cxx | 1 | ||||
-rw-r--r-- | svx/source/xoutdev/xattr.cxx | 9 | ||||
-rw-r--r-- | svx/source/xoutdev/xattr2.cxx | 30 |
3 files changed, 0 insertions, 40 deletions
diff --git a/svx/source/items/algitem.cxx b/svx/source/items/algitem.cxx index afef2e6f446c..e98c77d40564 100644 --- a/svx/source/items/algitem.cxx +++ b/svx/source/items/algitem.cxx @@ -41,7 +41,6 @@ using namespace ::com::sun::star; -SfxPoolItem* SvxOrientationItem::CreateDefault() { return new SvxOrientationItem(SVX_ORIENTATION_STANDARD, 0) ;} SfxPoolItem* SvxMarginItem::CreateDefault() { return new SvxMarginItem(0) ;} SvxOrientationItem::SvxOrientationItem( const SvxCellOrientation eOrientation, diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx index c7e3365e23a7..de6dac451146 100644 --- a/svx/source/xoutdev/xattr.cxx +++ b/svx/source/xoutdev/xattr.cxx @@ -1905,8 +1905,6 @@ bool XLineEndItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) return true; } -SfxPoolItem* XLineStartWidthItem::CreateDefault() {return new XLineStartWidthItem;} - XLineStartWidthItem::XLineStartWidthItem(long nWidth) : SfxMetricItem(XATTR_LINESTARTWIDTH, nWidth) { @@ -1955,8 +1953,6 @@ bool XLineStartWidthItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMemb return true; } -SfxPoolItem* XLineEndWidthItem::CreateDefault() {return new XLineEndWidthItem;} - XLineEndWidthItem::XLineEndWidthItem(long nWidth) : SfxMetricItem(XATTR_LINEENDWIDTH, nWidth) { @@ -2005,8 +2001,6 @@ bool XLineEndWidthItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMember return true; } -SfxPoolItem* XLineStartCenterItem::CreateDefault() {return new XLineStartCenterItem;} - XLineStartCenterItem::XLineStartCenterItem(bool bStartCenter) : SfxBoolItem(XATTR_LINESTARTCENTER, bStartCenter) { @@ -2057,8 +2051,6 @@ bool XLineStartCenterItem::PutValue( const css::uno::Any& rVal, sal_uInt8 /*nMem return true; } -SfxPoolItem* XLineEndCenterItem::CreateDefault() {return new XLineEndCenterItem;} - XLineEndCenterItem::XLineEndCenterItem(bool bEndCenter) : SfxBoolItem(XATTR_LINEENDCENTER, bEndCenter) { @@ -2278,7 +2270,6 @@ void XFillColorItem::dumpAsXml(xmlTextWriterPtr pWriter) const xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), BAD_CAST(GetColorValue().AsRGBHexString().toUtf8().getStr())); xmlTextWriterEndElement(pWriter); } -SfxPoolItem* XSecondaryFillColorItem::CreateDefault() {return new XSecondaryFillColorItem;} XSecondaryFillColorItem::XSecondaryFillColorItem(const OUString& rName, const Color& rTheColor) : XColorItem(XATTR_SECONDARYFILLCOLOR, rName, rTheColor) diff --git a/svx/source/xoutdev/xattr2.cxx b/svx/source/xoutdev/xattr2.cxx index 26f9f26816f6..a3cd82b9be36 100644 --- a/svx/source/xoutdev/xattr2.cxx +++ b/svx/source/xoutdev/xattr2.cxx @@ -34,8 +34,6 @@ #include <libxml/xmlwriter.h> -SfxPoolItem* XLineTransparenceItem::CreateDefault() {return new XLineTransparenceItem;} - XLineTransparenceItem::XLineTransparenceItem(sal_uInt16 nLineTransparence) : SfxUInt16Item(XATTR_LINETRANSPARENCE, nLineTransparence) { @@ -394,8 +392,6 @@ css::drawing::LineCap XLineCapItem::GetValue() const return eRetval; } -SfxPoolItem* XFillTransparenceItem::CreateDefault() {return new XFillTransparenceItem;} - XFillTransparenceItem::XFillTransparenceItem(sal_uInt16 nFillTransparence) : SfxUInt16Item(XATTR_FILLTRANSPARENCE, nFillTransparence) { @@ -449,8 +445,6 @@ void XFillTransparenceItem::dumpAsXml(xmlTextWriterPtr pWriter) const } -SfxPoolItem* XFormTextShadowTranspItem::CreateDefault() { return new XFormTextShadowTranspItem; } - XFormTextShadowTranspItem::XFormTextShadowTranspItem(sal_uInt16 nShdwTransparence) : SfxUInt16Item(XATTR_FORMTXTSHDWTRANSP, nShdwTransparence) { @@ -473,8 +467,6 @@ SfxPoolItem* XFormTextShadowTranspItem::Create(SvStream& rIn, sal_uInt16 /*nVer* // class XFillGradientStepCountItem -SfxPoolItem* XGradientStepCountItem::CreateDefault() {return new XGradientStepCountItem;} - XGradientStepCountItem::XGradientStepCountItem( sal_uInt16 nStepCount ) : SfxUInt16Item( XATTR_GRADIENTSTEPCOUNT, nStepCount ) { @@ -510,8 +502,6 @@ bool XGradientStepCountItem::GetPresentation } -SfxPoolItem* XFillBmpTileItem::CreateDefault() {return new XFillBmpTileItem;} - XFillBmpTileItem::XFillBmpTileItem( bool bTile ) : SfxBoolItem( XATTR_FILLBMP_TILE, bTile ) { @@ -555,8 +545,6 @@ void XFillBmpTileItem::dumpAsXml(xmlTextWriterPtr pWriter) const // class XFillBmpTilePosItem -SfxPoolItem* XFillBmpPosItem::CreateDefault() {return new XFillBmpPosItem;} - XFillBmpPosItem::XFillBmpPosItem( RectPoint eRP ) : SfxEnumItem( XATTR_FILLBMP_POS, eRP ) { @@ -604,8 +592,6 @@ void XFillBmpPosItem::dumpAsXml(xmlTextWriterPtr pWriter) const // class XFillBmpTileSizeXItem -SfxPoolItem* XFillBmpSizeXItem::CreateDefault() {return new XFillBmpSizeXItem;} - XFillBmpSizeXItem::XFillBmpSizeXItem( long nSizeX ) : SfxMetricItem( XATTR_FILLBMP_SIZEX, nSizeX ) { @@ -646,8 +632,6 @@ bool XFillBmpSizeXItem::HasMetrics() const // class XFillBmpTileSizeYItem -SfxPoolItem* XFillBmpSizeYItem::CreateDefault() {return new XFillBmpSizeYItem;} - XFillBmpSizeYItem::XFillBmpSizeYItem( long nSizeY ) : SfxMetricItem( XATTR_FILLBMP_SIZEY, nSizeY ) { @@ -687,8 +671,6 @@ bool XFillBmpSizeYItem::HasMetrics() const // class XFillBmpTileLogItem -SfxPoolItem* XFillBmpSizeLogItem::CreateDefault() {return new XFillBmpSizeLogItem;} - XFillBmpSizeLogItem::XFillBmpSizeLogItem( bool bLog ) : SfxBoolItem( XATTR_FILLBMP_SIZELOG, bLog ) { @@ -724,8 +706,6 @@ bool XFillBmpSizeLogItem::GetPresentation // class XFillBmpTileOffXItem -SfxPoolItem* XFillBmpTileOffsetXItem::CreateDefault() {return new XFillBmpTileOffsetXItem;} - XFillBmpTileOffsetXItem::XFillBmpTileOffsetXItem( sal_uInt16 nOffX ) : SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETX, nOffX ) { @@ -760,8 +740,6 @@ bool XFillBmpTileOffsetXItem::GetPresentation // class XFillBmpTileOffYItem -SfxPoolItem* XFillBmpTileOffsetYItem::CreateDefault() {return new XFillBmpTileOffsetYItem;} - XFillBmpTileOffsetYItem::XFillBmpTileOffsetYItem( sal_uInt16 nOffY ) : SfxUInt16Item( XATTR_FILLBMP_TILEOFFSETY, nOffY ) { @@ -794,8 +772,6 @@ bool XFillBmpTileOffsetYItem::GetPresentation return true; } -SfxPoolItem* XFillBmpStretchItem::CreateDefault() {return new XFillBmpStretchItem;} - XFillBmpStretchItem::XFillBmpStretchItem( bool bStretch ) : SfxBoolItem( XATTR_FILLBMP_STRETCH, bStretch ) { @@ -838,8 +814,6 @@ void XFillBmpStretchItem::dumpAsXml(xmlTextWriterPtr pWriter) const // class XFillBmpTileOffPosXItem -SfxPoolItem* XFillBmpPosOffsetXItem::CreateDefault() {return new XFillBmpPosOffsetXItem;} - XFillBmpPosOffsetXItem::XFillBmpPosOffsetXItem( sal_uInt16 nOffPosX ) : SfxUInt16Item( XATTR_FILLBMP_POSOFFSETX, nOffPosX ) { @@ -874,8 +848,6 @@ bool XFillBmpPosOffsetXItem::GetPresentation // class XFillBmpTileOffPosYItem -SfxPoolItem* XFillBmpPosOffsetYItem::CreateDefault() {return new XFillBmpPosOffsetYItem;} - XFillBmpPosOffsetYItem::XFillBmpPosOffsetYItem( sal_uInt16 nOffPosY ) : SfxUInt16Item( XATTR_FILLBMP_POSOFFSETY, nOffPosY ) { @@ -908,8 +880,6 @@ bool XFillBmpPosOffsetYItem::GetPresentation return true; } -SfxPoolItem* XFillBackgroundItem::CreateDefault() {return new XFillBackgroundItem;} - XFillBackgroundItem::XFillBackgroundItem( bool bFill ) : SfxBoolItem( XATTR_FILLBACKGROUND, bFill ) { |