diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-14 22:06:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-14 22:06:29 +0100 |
commit | a22ac2c218870033822120bf0b0d6cfde6ce799f (patch) | |
tree | 10d6bd7d7191bb93134a071198b6740a8c56cc1a /editeng/source | |
parent | 7f69bfe2d7b7082b430136815d1aca1fb158868c (diff) |
callcatcher: remove unused methods
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/items/frmitems.cxx | 32 | ||||
-rw-r--r-- | editeng/source/uno/unonrule.cxx | 38 |
2 files changed, 0 insertions, 70 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 2e2b439878a7..4b711dc523bb 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -3849,19 +3849,6 @@ SvStream& SvxBrushItem::Store( SvStream& rStream , sal_uInt16 /*nItemVersion*/ ) } // ----------------------------------------------------------------------- -// cast away const, since const is to be understood as a logical const -// if GetGraphic() is called, the item should take care of getting a linked -// graphic. -// ----------------------------------------------------------------------- - -void SvxBrushItem::PurgeGraphic() const -{ - PurgeMedium(); - DELETEZ( pImpl->pGraphicObject ); - ((SvxBrushItem*)this)->bLoadAgain = sal_True; -} - -// ----------------------------------------------------------------------- void SvxBrushItem::PurgeMedium() const { @@ -4076,25 +4063,6 @@ SvxBrushItem::SvxBrushItem( const CntWallpaperItem& rItem, sal_uInt16 _nWhich ) } } -CntWallpaperItem* SvxBrushItem::CreateCntWallpaperItem() const -{ - CntWallpaperItem* pItem = new CntWallpaperItem( 0 ); - pItem->SetColor( aColor.GetColor() ); - pItem->SetStyle( (sal_uInt16)GraphicPos2WallpaperStyle( GetGraphicPos() ) ); - sal_Bool bLink = (pStrLink != 0); - if( bLink ) - { - String aURL = *pStrLink; - pItem->SetBitmapURL( aURL ); - } - if( pImpl->pGraphicObject ) - { - DBG_ERRORFILE( "Don't know what to do with a graphic" ); - } - - return pItem; -} - #ifdef _MSC_VER #pragma optimize ( "", on ) #endif diff --git a/editeng/source/uno/unonrule.cxx b/editeng/source/uno/unonrule.cxx index 8861b6ca125a..d3915e770d21 100644 --- a/editeng/source/uno/unonrule.cxx +++ b/editeng/source/uno/unonrule.cxx @@ -499,44 +499,6 @@ const SvxNumRule& SvxGetNumRule( Reference< XIndexReplace > xRule ) throw( Illeg return pRule->getNumRule(); } -bool SvxGetNumRule( Reference< XIndexReplace > xRule, SvxNumRule& rNumRule ) -{ - SvxUnoNumberingRules* pRule = SvxUnoNumberingRules::getImplementation( xRule ); - if( pRule ) - { - rNumRule = pRule->getNumRule(); - } - else if( xRule.is() ) - { - try - { - pRule = new SvxUnoNumberingRules( rNumRule ); - - Reference< XIndexReplace > xDestRule( pRule ); - - const sal_Int32 nCount = min( xRule->getCount(), xDestRule->getCount() ); - sal_Int32 nLevel; - for( nLevel = 0; nLevel < nCount; nLevel++ ) - { - xDestRule->replaceByIndex( nLevel, xRule->getByIndex( nLevel ) ); - } - - rNumRule = pRule->getNumRule(); - } - catch( Exception& ) - { - return false; - } - } - else - { - return false; - } - - return true; -} - -/////////////////////////////////////////////////////////////////////// com::sun::star::uno::Reference< com::sun::star::container::XIndexReplace > SvxCreateNumRule( const SvxNumRule* pRule ) throw() { DBG_ASSERT( pRule, "No default SvxNumRule!" ); |