diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-03-24 15:59:06 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-25 09:15:39 +0100 |
commit | af4b38d6e7f769bf403a768bd310e5fa2b3e8ddd (patch) | |
tree | 3b32faa6d21f252e383411c7f9ea77973d7d03c3 /UnoControls/source | |
parent | 05c1c60a8258caa7b088bc52e85c4b3d8e70f68a (diff) |
Remove dead code
Change-Id: I59fb7843d5c9a6cf2873b6d668d0e9dccff316d2
Diffstat (limited to 'UnoControls/source')
-rw-r--r-- | UnoControls/source/base/basecontainercontrol.cxx | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/UnoControls/source/base/basecontainercontrol.cxx b/UnoControls/source/base/basecontainercontrol.cxx index 5806504520b4..37ca44480989 100644 --- a/UnoControls/source/base/basecontainercontrol.cxx +++ b/UnoControls/source/base/basecontainercontrol.cxx @@ -298,18 +298,6 @@ void SAL_CALL BaseContainerControl::addControl ( const OUString& rName, const Re // XControlContainer -void SAL_CALL BaseContainerControl::addContainerListener ( const Reference< XContainerListener > & rListener ) throw( RuntimeException ) -{ - // Ready for multithreading - MutexGuard aGuard ( m_aMutex ) ; - - m_aListeners.addInterface ( ::getCppuType((const Reference< XContainerListener >*)0), rListener ) ; -} - - -// XControlContainer - - void SAL_CALL BaseContainerControl::removeControl ( const Reference< XControl > & rControl ) throw( RuntimeException, std::exception ) { if ( rControl.is() ) @@ -363,18 +351,6 @@ void SAL_CALL BaseContainerControl::removeControl ( const Reference< XControl > // XControlContainer -void SAL_CALL BaseContainerControl::removeContainerListener ( const Reference< XContainerListener > & rListener ) throw( RuntimeException ) -{ - // Ready for multithreading - MutexGuard aGuard ( m_aMutex ) ; - - m_aListeners.removeInterface ( ::getCppuType((const Reference< XContainerListener >*)0), rListener ) ; -} - - -// XControlContainer - - void SAL_CALL BaseContainerControl::setStatusText ( const OUString& rStatusText ) throw( RuntimeException, std::exception ) { // go down to each parent @@ -440,76 +416,6 @@ Sequence< Reference< XControl > > SAL_CALL BaseContainerControl::getControls () } -// XUnoControlContainer - - -void SAL_CALL BaseContainerControl::addTabController ( const Reference< XTabController > & rTabController ) throw( RuntimeException ) -{ - // Ready for multithreading - MutexGuard aGuard (m_aMutex) ; - - sal_uInt32 nOldCount = m_xTabControllerList.getLength () ; - Sequence< Reference< XTabController > > aNewList ( nOldCount + 1 ) ; - sal_uInt32 nCount = 0 ; - - // Copy old elements of sequence to new list. - for ( nCount = 0; nCount < nOldCount; ++nCount ) - { - aNewList.getArray () [nCount] = m_xTabControllerList.getConstArray () [nCount] ; - } - - // Add new controller - aNewList.getArray () [nOldCount] = rTabController ; - - // change old and new list - m_xTabControllerList = aNewList ; -} - - -// XUnoControlContainer - - -void SAL_CALL BaseContainerControl::removeTabController ( const Reference< XTabController > & rTabController ) throw( RuntimeException ) -{ - // Ready for multithreading - MutexGuard aGuard (m_aMutex) ; - - sal_uInt32 nMaxCount = m_xTabControllerList.getLength () ; - sal_uInt32 nCount = 0 ; - - // Search right tabcontroller ... - for ( nCount = 0; nCount < nMaxCount; ++nCount ) - { - if ( m_xTabControllerList.getConstArray () [nCount] == rTabController ) - { - // ... if is it found ... remove it from list. - m_xTabControllerList.getArray()[ nCount ].clear(); - break ; - } - } -} - - -// XUnoControlContainer - - -void SAL_CALL BaseContainerControl::setTabControllers ( const Sequence< Reference< XTabController > >& rTabControllers ) throw( RuntimeException ) -{ - // Ready for multithreading - MutexGuard aGuard (m_aMutex) ; - - m_xTabControllerList = rTabControllers ; -} - -Sequence<Reference< XTabController > > SAL_CALL BaseContainerControl::getTabControllers () throw( RuntimeException ) -{ - // Ready for multithreading - MutexGuard aGuard (m_aMutex) ; - - return m_xTabControllerList ; -} - - // XWindow |