summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-09-21 12:46:06 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2012-09-21 14:33:18 +0200
commit96afd76fc4c2298bebbcff1ad8b45ddc76b0e557 (patch)
treecfc8327a5ceffcc86dea072a65eabfd180704e61 /svtools
parenta481a40961bf6a5036ecd1c0550f45b50e7b221f (diff)
unusedcode: SvtSlideSorterBarOptions::*ListenerLink
Change-Id: I7e396b9ed7f3d64c0b085448fdea562e3d740084
Diffstat (limited to 'svtools')
-rw-r--r--svtools/inc/svtools/slidesorterbaropt.hxx4
-rw-r--r--svtools/source/config/slidesorterbaropt.cxx47
2 files changed, 0 insertions, 51 deletions
diff --git a/svtools/inc/svtools/slidesorterbaropt.hxx b/svtools/inc/svtools/slidesorterbaropt.hxx
index c00952af37d0..512eae85e39f 100644
--- a/svtools/inc/svtools/slidesorterbaropt.hxx
+++ b/svtools/inc/svtools/slidesorterbaropt.hxx
@@ -34,7 +34,6 @@
is faster and smaller then a complete implementation!
*/
class SvtSlideSorterBarOptions_Impl;
-class Link;
/** collect informations about sidebar group
@@ -56,9 +55,6 @@ class SVT_DLLPUBLIC SvtSlideSorterBarOptions: public utl::detail::Options
SvtSlideSorterBarOptions();
virtual ~SvtSlideSorterBarOptions();
- void AddListenerLink( const Link& rLink );
- void RemoveListenerLink( const Link& rLink );
-
bool GetVisibleImpressView() const;
void SetVisibleImpressView( bool bVisible );
bool GetVisibleOutlineView() const;
diff --git a/svtools/source/config/slidesorterbaropt.cxx b/svtools/source/config/slidesorterbaropt.cxx
index 634495d401c1..a0f9581c8bf4 100644
--- a/svtools/source/config/slidesorterbaropt.cxx
+++ b/svtools/source/config/slidesorterbaropt.cxx
@@ -23,16 +23,9 @@
#include <tools/debug.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Sequence.hxx>
-#include <tools/link.hxx>
#include <rtl/logfile.hxx>
#include <rtl/instance.hxx>
-#include "itemholder2.hxx"
-
-#include <svtools/imgdef.hxx>
-#include <vcl/svapp.hxx>
-
-#include <list>
using namespace ::utl;
using namespace ::rtl;
@@ -59,8 +52,6 @@ using namespace ::com::sun::star;
class SvtSlideSorterBarOptions_Impl : public ConfigItem
{
- private:
- ::std::list<Link> aList;
Sequence< OUString > m_seqPropertyNames;
public:
@@ -102,10 +93,6 @@ class SvtSlideSorterBarOptions_Impl : public ConfigItem
bool m_bVisibleSlideSorterView;
bool m_bVisibleDrawView;
- void AddListenerLink( const Link& rLink );
- void RemoveListenerLink( const Link& rLink );
- void CallListeners();
-
private:
/** return list of key names of our configuration management which represent oue module tree
@@ -268,33 +255,9 @@ void SvtSlideSorterBarOptions_Impl::Load( const Sequence< OUString >& rPropertyN
}
}
-void SvtSlideSorterBarOptions_Impl::AddListenerLink( const Link& rLink )
-{
- aList.push_back( rLink );
-}
-
-void SvtSlideSorterBarOptions_Impl::RemoveListenerLink( const Link& rLink )
-{
- for ( ::std::list<Link>::iterator iter = aList.begin(); iter != aList.end(); ++iter )
- {
- if ( *iter == rLink )
- {
- aList.erase(iter);
- break;
- }
- }
-}
-
-void SvtSlideSorterBarOptions_Impl::CallListeners()
-{
- for ( ::std::list<Link>::const_iterator iter = aList.begin(); iter != aList.end(); ++iter )
- iter->Call( this );
-}
-
void SvtSlideSorterBarOptions_Impl::Notify( const Sequence< OUString >& rPropertyNames )
{
Load( rPropertyNames );
- CallListeners();
}
void SvtSlideSorterBarOptions_Impl::Commit()
@@ -462,14 +425,4 @@ Mutex & SvtSlideSorterBarOptions::GetInitMutex()
return theSvtSlideSorterBarOptionsMutex::get();
}
-void SvtSlideSorterBarOptions::AddListenerLink( const Link& rLink )
-{
- m_pDataContainer->AddListenerLink( rLink );
-}
-
-void SvtSlideSorterBarOptions::RemoveListenerLink( const Link& rLink )
-{
- m_pDataContainer->RemoveListenerLink( rLink );
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */