From 6aa90a44f23cc469c796d5fe79b1f9841ff5e847 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 16 Oct 2015 15:14:13 +0200 Subject: remove dead Link<> code Change-Id: I01891cd34535ea08a07c3bb47976f6c9a70c3656 --- dbaccess/source/ui/dlg/TextConnectionHelper.cxx | 32 ------------------------- dbaccess/source/ui/dlg/TextConnectionHelper.hxx | 8 ------- 2 files changed, 40 deletions(-) (limited to 'dbaccess/source') diff --git a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx index eb17f6cc91df..689a47d24e91 100644 --- a/dbaccess/source/ui/dlg/TextConnectionHelper.cxx +++ b/dbaccess/source/ui/dlg/TextConnectionHelper.cxx @@ -94,17 +94,6 @@ namespace dbaui m_pTextSeparator->InsertEntry( m_aTextSeparatorList.getToken( i, '\t' ) ); m_pTextSeparator->InsertEntry(m_aTextNone); - // set the modify handlers - m_pFieldSeparator->SetUpdateDataHdl(LINK(this, OTextConnectionHelper, OnControlEditModified)); - m_pFieldSeparator->SetSelectHdl(LINK(this, OTextConnectionHelper, ComboBoxSelectHdl)); - m_pTextSeparator->SetUpdateDataHdl(LINK(this, OTextConnectionHelper, OnControlEditModified)); - m_pTextSeparator->SetSelectHdl(LINK(this, OTextConnectionHelper, ComboBoxSelectHdl)); - m_pCharSet->SetSelectHdl(LINK(this, OTextConnectionHelper, CharsetSelectHdl)); - - m_pFieldSeparator->SetModifyHdl(LINK(this, OTextConnectionHelper, OnControlEditModified)); - m_pTextSeparator->SetModifyHdl(LINK(this, OTextConnectionHelper, OnControlEditModified)); - m_pDecimalSeparator->SetModifyHdl(LINK(this, OTextConnectionHelper, OnControlEditModified)); - m_pThousandsSeparator->SetModifyHdl(LINK(this, OTextConnectionHelper, OnControlEditModified)); m_pOwnExtension->SetModifyHdl(LINK(this, OTextConnectionHelper, OnEditModified)); m_pAccessTextFiles->SetToggleHdl(LINK(this, OTextConnectionHelper, OnSetExtensionHdl)); m_pAccessCSVFiles->SetToggleHdl(LINK(this, OTextConnectionHelper, OnSetExtensionHdl)); @@ -151,21 +140,6 @@ namespace dbaui Show(); } - IMPL_LINK_TYPED(OTextConnectionHelper, CharsetSelectHdl, ListBox&, rListBox, void) - { - getControlModifiedLink().Call(&rListBox); - } - - IMPL_LINK_TYPED(OTextConnectionHelper, ComboBoxSelectHdl, ComboBox&, rBox, void) - { - getControlModifiedLink().Call(&rBox); - } - - IMPL_LINK_TYPED(OTextConnectionHelper, OnControlEditModified, Edit&, rEdit, void) - { - getControlModifiedLink().Call(&rEdit); - } - OTextConnectionHelper::~OTextConnectionHelper() { disposeOnce(); @@ -195,12 +169,6 @@ namespace dbaui TabPage::dispose(); } - IMPL_LINK(OTextConnectionHelper, OnControlModified, Control*,) - { - callModifiedHdl(); - return 0L; - } - IMPL_LINK_NOARG_TYPED(OTextConnectionHelper, OnEditModified, Edit&, void) { m_aGetExtensionHandler.Call(this); diff --git a/dbaccess/source/ui/dlg/TextConnectionHelper.hxx b/dbaccess/source/ui/dlg/TextConnectionHelper.hxx index 625758ba21ce..c07f669d2d27 100644 --- a/dbaccess/source/ui/dlg/TextConnectionHelper.hxx +++ b/dbaccess/source/ui/dlg/TextConnectionHelper.hxx @@ -44,8 +44,6 @@ namespace dbaui { OTextConnectionHelper(); - Link<> m_aModifiedHandler; /// to be called if something on the page has been modified - public: OTextConnectionHelper( vcl::Window* pParent, const short _nAvailableSections ); virtual ~OTextConnectionHelper(); @@ -80,14 +78,8 @@ namespace dbaui short m_nAvailableSections; protected: - void callModifiedHdl() const { m_aModifiedHandler.Call(const_cast(this)); } - Link<> getControlModifiedLink() { return LINK(this, OTextConnectionHelper, OnControlModified); } DECL_LINK_TYPED(OnSetExtensionHdl,RadioButton&,void); - DECL_LINK(OnControlModified,Control*); - DECL_LINK_TYPED(OnControlEditModified, Edit&, void); DECL_LINK_TYPED(OnEditModified, Edit&, void); - DECL_LINK_TYPED(CharsetSelectHdl,ListBox&,void); - DECL_LINK_TYPED(ComboBoxSelectHdl,ComboBox&,void); private: OUString GetSeparator( const ComboBox& rBox, const OUString& rList ); -- cgit