summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-10 09:08:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-10 11:34:18 +0200
commit0e384e1080381e894b590fd0a6d453568715e8fa (patch)
tree1f91b14d4140219c6bfcaacf85d755facdc34d40 /forms
parent6ede622ab6d2393c3ec90fcaa6e2487232b8c1a8 (diff)
loplugin:unnecessaryvirtual improvements
look for virtual methods where all of the overrides of the method are empty Change-Id: I87d99a0b647700a8d53498e0ab5f0437d3508553 Reviewed-on: https://gerrit.libreoffice.org/54060 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/ComboBox.cxx12
-rw-r--r--forms/source/component/ComboBox.hxx2
-rw-r--r--forms/source/component/ListBox.cxx14
-rw-r--r--forms/source/component/ListBox.hxx2
-rw-r--r--forms/source/component/entrylisthelper.cxx17
-rw-r--r--forms/source/component/entrylisthelper.hxx8
6 files changed, 0 insertions, 55 deletions
diff --git a/forms/source/component/ComboBox.cxx b/forms/source/component/ComboBox.cxx
index 92652c7cd647..71b8a25efc58 100644
--- a/forms/source/component/ComboBox.cxx
+++ b/forms/source/component/ComboBox.cxx
@@ -830,18 +830,6 @@ void OComboBoxModel::stringItemListChanged( ControlModelLock& /*_rInstanceLock*/
}
-void OComboBoxModel::connectedExternalListSource( )
-{
- // TODO?
-}
-
-
-void OComboBoxModel::disconnectedExternalListSource( )
-{
- // TODO?
-}
-
-
void OComboBoxModel::refreshInternalEntryList()
{
DBG_ASSERT( !hasExternalListSource(), "OComboBoxModel::refreshInternalEntryList: invalid call!" );
diff --git a/forms/source/component/ComboBox.hxx b/forms/source/component/ComboBox.hxx
index 6e84fba4b57d..06b77f762d5f 100644
--- a/forms/source/component/ComboBox.hxx
+++ b/forms/source/component/ComboBox.hxx
@@ -124,8 +124,6 @@ private:
// OEntryListHelper overridables
virtual void stringItemListChanged( ControlModelLock& _rInstanceLock ) override;
- virtual void connectedExternalListSource( ) override;
- virtual void disconnectedExternalListSource( ) override;
virtual void refreshInternalEntryList() override;
void loadData( bool _bForce );
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index 67c4c3615c90..2b3a6a4a82ba 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -1765,20 +1765,6 @@ namespace frm
}
- void OListBoxModel::connectedExternalListSource( )
- {
- // TODO?
- }
-
-
- void OListBoxModel::disconnectedExternalListSource( )
- {
- // TODO: in case we're part of an already loaded form, we should probably simulate
- // an onConnectedDbColumn, so our list gets filled with the data as indicated
- // by our SQL-binding related properties
- }
-
-
void OListBoxModel::impl_refreshDbEntryList( bool _bForce )
{
DBG_ASSERT( !hasExternalListSource(), "OListBoxModel::impl_refreshDbEntryList: invalid call!" );
diff --git a/forms/source/component/ListBox.hxx b/forms/source/component/ListBox.hxx
index d0c9173e2468..42a41d522444 100644
--- a/forms/source/component/ListBox.hxx
+++ b/forms/source/component/ListBox.hxx
@@ -196,8 +196,6 @@ private:
// OEntryListHelper overridables
virtual void stringItemListChanged( ControlModelLock& _rInstanceLock ) override;
- virtual void connectedExternalListSource( ) override;
- virtual void disconnectedExternalListSource( ) override;
virtual void refreshInternalEntryList() override;
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone( ) override;
diff --git a/forms/source/component/entrylisthelper.cxx b/forms/source/component/entrylisthelper.cxx
index 0016d65bba31..fcb66644d6ca 100644
--- a/forms/source/component/entrylisthelper.cxx
+++ b/forms/source/component/entrylisthelper.cxx
@@ -240,20 +240,6 @@ namespace frm
m_xListSource->removeListEntryListener( this );
m_xListSource.clear();
-
- disconnectedExternalListSource();
- }
-
-
- void OEntryListHelper::connectedExternalListSource( )
- {
- // nothing to do here
- }
-
-
- void OEntryListHelper::disconnectedExternalListSource( )
- {
- // nothing to do here
}
@@ -272,9 +258,6 @@ namespace frm
m_xListSource->addListEntryListener( this );
obtainListSourceEntries( _rInstanceLock );
-
- // let derivees react on the new list source
- connectedExternalListSource();
}
}
diff --git a/forms/source/component/entrylisthelper.hxx b/forms/source/component/entrylisthelper.hxx
index be2759410e86..929c4d5bd320 100644
--- a/forms/source/component/entrylisthelper.hxx
+++ b/forms/source/component/entrylisthelper.hxx
@@ -133,14 +133,6 @@ namespace frm
*/
virtual void stringItemListChanged( ControlModelLock& _rInstanceLock ) = 0;
- /** called whenever a connection to a new external list source has been established
- */
- virtual void connectedExternalListSource( );
-
- /** called whenever a connection to a new external list source has been revoked
- */
- virtual void disconnectedExternalListSource( );
-
/** called when XRefreshable::refresh has been called, and we do *not* have an external
list source
*/