From 2c8fe2e737b84ecd3dbac36a4fe6bd061bbd3bae Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 16 May 2016 10:11:04 +0200 Subject: update unusedmethods plugin to deal with constructors and fix the operator< implementations in some of the other plugins too. Change-Id: Ie5631e0cdc8d2a994ad2af2533cdb558a6cfc035 Reviewed-on: https://gerrit.libreoffice.org/25057 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svl/source/items/ctypeitm.cxx | 6 ------ svl/source/items/nranges.cxx | 9 --------- svl/source/items/rngitem.cxx | 12 ------------ svl/source/items/szitem.cxx | 5 ----- svl/source/svdde/ddecli.cxx | 22 ---------------------- 5 files changed, 54 deletions(-) (limited to 'svl') diff --git a/svl/source/items/ctypeitm.cxx b/svl/source/items/ctypeitm.cxx index 646ed8b2465b..82b779bf4384 100644 --- a/svl/source/items/ctypeitm.cxx +++ b/svl/source/items/ctypeitm.cxx @@ -35,12 +35,6 @@ #define CONTENT_TYPE_NOT_INIT ( (INetContentType)-1 ) -CntContentTypeItem::CntContentTypeItem() -: CntUnencodedStringItem(), - _eType( CONTENT_TYPE_NOT_INIT ) -{ -} - CntContentTypeItem::CntContentTypeItem( sal_uInt16 which, const OUString& rType ) : CntUnencodedStringItem( which, rType ), _eType( CONTENT_TYPE_NOT_INIT ) diff --git a/svl/source/items/nranges.cxx b/svl/source/items/nranges.cxx index da3e21768358..b445cb7f3272 100644 --- a/svl/source/items/nranges.cxx +++ b/svl/source/items/nranges.cxx @@ -351,13 +351,4 @@ copy_rest: return *this; } -/** - * Determines the number of USHORTs in the set described by the ranges - * of USHORTs in '*this'. - */ -sal_uInt16 SfxUShortRanges::Count() const -{ - return Capacity_Impl( _pRanges ); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svl/source/items/rngitem.cxx b/svl/source/items/rngitem.cxx index 6fcd15738c21..7a0e2d1f69ad 100644 --- a/svl/source/items/rngitem.cxx +++ b/svl/source/items/rngitem.cxx @@ -31,13 +31,6 @@ static inline sal_uInt16 Count_Impl(const sal_uInt16 * pRanges) } -SfxRangeItem::SfxRangeItem() -{ - nFrom = 0; - nTo = 0; -} - - SfxRangeItem::SfxRangeItem( sal_uInt16 which, sal_uInt16 from, sal_uInt16 to ): SfxPoolItem( which ), nFrom( from ), @@ -98,11 +91,6 @@ SvStream& SfxRangeItem::Store(SvStream &rStream, sal_uInt16) const return rStream; } -SfxUShortRangesItem::SfxUShortRangesItem() -: _pRanges(nullptr) -{ -} - SfxUShortRangesItem::SfxUShortRangesItem( sal_uInt16 nWID, SvStream &rStream ) : SfxPoolItem( nWID ) { diff --git a/svl/source/items/szitem.cxx b/svl/source/items/szitem.cxx index 2239919691f8..ee4b77e25aeb 100644 --- a/svl/source/items/szitem.cxx +++ b/svl/source/items/szitem.cxx @@ -28,11 +28,6 @@ #include -SfxSizeItem::SfxSizeItem() -{ -} - - SfxSizeItem::SfxSizeItem( sal_uInt16 nW, const Size& rVal ) : SfxPoolItem( nW ), aVal( rVal ) diff --git a/svl/source/svdde/ddecli.cxx b/svl/source/svdde/ddecli.cxx index fd09c85af57f..09c6e9444104 100644 --- a/svl/source/svdde/ddecli.cxx +++ b/svl/source/svdde/ddecli.cxx @@ -371,34 +371,12 @@ DdeRequest::DdeRequest( DdeConnection& d, const OUString& i, long n ) nType = XTYP_REQUEST; } -DdeWarmLink::DdeWarmLink( DdeConnection& d, const OUString& i, long n ) - : DdeLink( d, i, n ) -{ - nType = XTYP_ADVSTART | XTYPF_NODATA; -} - DdeHotLink::DdeHotLink( DdeConnection& d, const OUString& i, long n ) : DdeLink( d, i, n ) { nType = XTYP_ADVSTART; } -DdePoke::DdePoke( DdeConnection& d, const OUString& i, const char* p, - long l, SotClipboardFormatId f, long n ) - : DdeTransaction( d, i, n ) -{ - aDdeData = DdeData( p, l, f ); - nType = XTYP_POKE; -} - -DdePoke::DdePoke( DdeConnection& d, const OUString& i, const OUString& rData, - long n ) - : DdeTransaction( d, i, n ) -{ - aDdeData = DdeData( (void*) rData.getStr(), sizeof(sal_Unicode) * (rData.getLength()), SotClipboardFormatId::STRING ); - nType = XTYP_POKE; -} - DdePoke::DdePoke( DdeConnection& d, const OUString& i, const DdeData& rData, long n ) : DdeTransaction( d, i, n ) -- cgit