summaryrefslogtreecommitdiff
path: root/sfx2/source/control/bindings.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-04 09:56:39 +0200
committerNoel Grandin <noel@peralex.com>2014-03-05 09:17:50 +0200
commit42a6e74fc36862c4115fee07fe6be4a233adb30d (patch)
tree12c0ee581b502e6ae5899824729d73dbd59b7f1a /sfx2/source/control/bindings.cxx
parent2e7807cb8673dd6ca6703d0554117fd9666ffd6a (diff)
remove unused code in SfxBindings
SfxBindings::GetSlot(unsigned short) SfxBindings::GetSystemWindow() const Change-Id: Icc024abcde1394ade86d3f4e623e4030382d2b63
Diffstat (limited to 'sfx2/source/control/bindings.cxx')
-rw-r--r--sfx2/source/control/bindings.cxx26
1 files changed, 0 insertions, 26 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx
index 67dcb3fa2047..5f0ac2f278aa 100644
--- a/sfx2/source/control/bindings.cxx
+++ b/sfx2/source/control/bindings.cxx
@@ -1829,23 +1829,6 @@ void SfxBindings::LeaveRegistrations( sal_uInt16 nLevel, const char *pFile, int
-const SfxSlot* SfxBindings::GetSlot(sal_uInt16 nSlotId)
-{
- DBG_ASSERT( pImp->pCaches != 0, "SfxBindings not initialized" );
-
- // synchronizing
- pDispatcher->Flush();
- if ( pImp->bMsgDirty )
- UpdateSlotServer_Impl();
-
- // get the cache for the specified function; return if not bound
- SfxStateCache* pCache = GetStateCache(nSlotId);
- return pCache && pCache->GetSlotServer(*pDispatcher, pImp->xProv)?
- pCache->GetSlotServer(*pDispatcher, pImp->xProv)->GetSlot(): 0;
-}
-
-
-
void SfxBindings::SetDispatcher( SfxDispatcher *pDisp )
{
SfxDispatcher *pOldDispat = pDispatcher;
@@ -2180,15 +2163,6 @@ void SfxBindings::SetDispatchProvider_Impl( const ::com::sun::star::uno::Referen
pImp->pSubBindings->SetDispatchProvider_Impl( pImp->xProv );
}
-SystemWindow* SfxBindings::GetSystemWindow() const
-{
- SfxViewFrame *pFrame = pDispatcher->GetFrame();
- while ( pFrame->GetParentViewFrame_Impl() )
- pFrame = pFrame->GetParentViewFrame_Impl();
- SfxViewFrame* pTop = pFrame->GetTopViewFrame();
- return pTop->GetFrame().GetTopWindow_Impl();
-}
-
sal_Bool SfxBindings::ExecuteCommand_Impl( const OUString& rCommand )
{
::com::sun::star::util::URL aURL;