diff options
author | Elton Chung <elton@layerjet.com> | 2012-02-05 18:47:50 +0800 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-05 21:40:30 +0400 |
commit | 9c2f7056a82c4d7719715ca1c77f8dd4c17aa24c (patch) | |
tree | fcfff781b70e6423b5b5c32831eae1ca251be6b7 /sfx2/source/control/shell.cxx | |
parent | 4fa8d043f8336e7b35130934498f8a4b357967d3 (diff) |
Remove unused code
Diffstat (limited to 'sfx2/source/control/shell.cxx')
-rw-r--r-- | sfx2/source/control/shell.cxx | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/sfx2/source/control/shell.cxx b/sfx2/source/control/shell.cxx index ecc5fb4cc03e..ecda3acd192c 100644 --- a/sfx2/source/control/shell.cxx +++ b/sfx2/source/control/shell.cxx @@ -308,45 +308,6 @@ const SfxPoolItem* SfxShell::GetItem //-------------------------------------------------------------------- -void SfxShell::RemoveItem -( - sal_uInt16 nSlotId // Slot-Id of the deleting <SfxPoolItem>s -) - -/* [Description] - - With this method the general available subclasses instances of - <cSfxPoolItem> from the SfxShell are removed. - - The stored instance is deleted. - - [Cross-reference] - - <SfxShell::PutItem(const SfxPoolItem&)> - <SfxShell::GetItem(sal_uInt16)> -*/ - -{ - for ( sal_uInt16 nPos = 0; nPos < pImp->aItems.Count(); ++nPos ) - if ( pImp->aItems.GetObject(nPos)->Which() == nSlotId ) - { - // Remove and delete Item - SfxPoolItem *pItem = pImp->aItems.GetObject(nPos); - delete pItem; - pImp->aItems.Remove(nPos); - - // if active, notify Bindings - SfxDispatcher *pDispat = GetDispatcher(); - if ( pDispat ) - { - SfxVoidItem aVoid( nSlotId ); - pDispat->GetBindings()->Broadcast( SfxPoolItemHint( &aVoid ) ); - } - } -} - -//-------------------------------------------------------------------- - void SfxShell::PutItem ( const SfxPoolItem& rItem /* Instance, of which a copy is created, @@ -430,20 +391,6 @@ SfxInterface* SfxShell::GetInterface() const //-------------------------------------------------------------------- -SfxBroadcaster* SfxShell::GetBroadcaster() - -/* [Description] - - Returns a SfxBroadcaster for this SfxShell instance until the class of - SfxShell is derived by SfxBroadcaster. -*/ - -{ - return pImp; -} - -//-------------------------------------------------------------------- - ::svl::IUndoManager* SfxShell::GetUndoManager() /* [Description] |