summaryrefslogtreecommitdiff
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
parent2e7807cb8673dd6ca6703d0554117fd9666ffd6a (diff)
remove unused code in SfxBindings
SfxBindings::GetSlot(unsigned short) SfxBindings::GetSystemWindow() const Change-Id: Icc024abcde1394ade86d3f4e623e4030382d2b63
-rw-r--r--include/sfx2/bindings.hxx2
-rw-r--r--sfx2/source/control/bindings.cxx26
-rw-r--r--unusedcode.easy2
3 files changed, 0 insertions, 30 deletions
diff --git a/include/sfx2/bindings.hxx b/include/sfx2/bindings.hxx
index 38a81548a9c7..b68c484497a0 100644
--- a/include/sfx2/bindings.hxx
+++ b/include/sfx2/bindings.hxx
@@ -148,7 +148,6 @@ public:
sal_Bool IsBound( sal_uInt16 nMsgId, sal_uInt16 nStartSearchAt = 0 );
- const SfxSlot* GetSlot( sal_uInt16 nMsgId );
SfxStateCache* GetStateCache( sal_uInt16 nId);
SAL_DLLPRIVATE SfxStateCache* GetAnyStateCache_Impl( sal_uInt16 nId );
/**
@@ -175,7 +174,6 @@ public:
void LeaveRegistrations( sal_uInt16 nLevel = USHRT_MAX, const char *pFile = 0, int nLine = 0 );
void Register( SfxControllerItem& rBinding );
void Release( SfxControllerItem& rBinding );
- SystemWindow* GetSystemWindow() const;
SfxDispatcher* GetDispatcher() const
{ return pDispatcher; }
com::sun::star::uno::Reference< com::sun::star::frame::XDispatchRecorder > GetRecorder() const;
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;
diff --git a/unusedcode.easy b/unusedcode.easy
index e08c2ce60009..4609d6abc066 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -39,8 +39,6 @@ SdrItemBrowser::ForceParent()
SdrItemBrowser::SdrItemBrowser(SdrView&)
SfxAcceleratorConfigPage::Create(Window*, SfxItemSet const&)
SfxAppMenuControl_Impl::RegisterControl(unsigned short, SfxModule*)
-SfxBindings::GetSlot(unsigned short)
-SfxBindings::GetSystemWindow() const
SfxInt64Item::SetValue(long)
SimpleErrorHandler::SimpleErrorHandler()
StyleSettings::SetActiveColor2(Color const&)