From a6ed90b37cabd339aa1b364762e5e49fd9067848 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 2 Aug 2019 10:22:10 +0100 Subject: drop some newly unused functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I2ee32a9fdac6ff85927a5755ce341a591a462544 Reviewed-on: https://gerrit.libreoffice.org/76849 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- dbaccess/source/ui/dlg/adminpages.cxx | 37 ----------------------------------- dbaccess/source/ui/dlg/adminpages.hxx | 3 --- 2 files changed, 40 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/source/ui/dlg/adminpages.cxx b/dbaccess/source/ui/dlg/adminpages.cxx index 58464f36643c..22486900faf3 100644 --- a/dbaccess/source/ui/dlg/adminpages.cxx +++ b/dbaccess/source/ui/dlg/adminpages.cxx @@ -203,27 +203,6 @@ namespace dbaui { return true; } - void OGenericAdministrationPage::fillBool( SfxItemSet& _rSet, CheckBox const * _pCheckBox, sal_uInt16 _nID, bool& _bChangedSomething, bool _bRevertValue ) - { - if ( _pCheckBox && _pCheckBox->IsValueChangedFromSaved() ) - { - bool bValue = _pCheckBox->IsChecked(); - if ( _bRevertValue ) - bValue = !bValue; - - if ( _pCheckBox->IsTriStateEnabled() ) - { - OptionalBoolItem aValue( _nID ); - if ( _pCheckBox->GetState() != TRISTATE_INDET ) - aValue.SetValue( bValue ); - _rSet.Put( aValue ); - } - else - _rSet.Put( SfxBoolItem( _nID, bValue ) ); - - _bChangedSomething = true; - } - } void OGenericAdministrationPage::fillBool( SfxItemSet& _rSet, const weld::CheckButton* pCheckBox, sal_uInt16 _nID, bool bOptionalBool, bool& _bChangedSomething, bool _bRevertValue ) { if (pCheckBox && pCheckBox->get_state_changed_from_saved()) @@ -245,14 +224,6 @@ namespace dbaui _bChangedSomething = true; } } - void OGenericAdministrationPage::fillInt32(SfxItemSet& _rSet, NumericField const * _pEdit, sal_uInt16 _nID, bool& _bChangedSomething) - { - if( _pEdit && _pEdit->IsValueChangedFromSaved() ) - { - _rSet.Put(SfxInt32Item(_nID, static_cast(_pEdit->GetValue()))); - _bChangedSomething = true; - } - } void OGenericAdministrationPage::fillInt32(SfxItemSet& _rSet, const weld::SpinButton* pEdit, sal_uInt16 _nID, bool& _bChangedSomething) { if (pEdit && pEdit->get_value_changed_from_saved()) @@ -261,14 +232,6 @@ namespace dbaui _bChangedSomething = true; } } - void OGenericAdministrationPage::fillString(SfxItemSet& _rSet, Edit const * _pEdit, sal_uInt16 _nID, bool& _bChangedSomething) - { - if( _pEdit && _pEdit->IsValueChangedFromSaved() ) - { - _rSet.Put(SfxStringItem(_nID, _pEdit->GetText())); - _bChangedSomething = true; - } - } void OGenericAdministrationPage::fillString(SfxItemSet& _rSet, const weld::Entry* pEdit, sal_uInt16 _nID, bool& _bChangedSomething) { if (pEdit && pEdit->get_value_changed_from_saved()) diff --git a/dbaccess/source/ui/dlg/adminpages.hxx b/dbaccess/source/ui/dlg/adminpages.hxx index 1bd217274066..6900f1f7cc2f 100644 --- a/dbaccess/source/ui/dlg/adminpages.hxx +++ b/dbaccess/source/ui/dlg/adminpages.hxx @@ -222,7 +222,6 @@ namespace dbaui @param _bRevertValue set to if the display value should be reverted before putting it into the set */ - static void fillBool(SfxItemSet& _rSet, CheckBox const * _pCheckBox, sal_uInt16 _nID, bool& _bChangedSomething, bool _bRevertValue = false); static void fillBool(SfxItemSet& _rSet, const weld::CheckButton* pCheckBox, sal_uInt16 _nID, bool bOptionalBool, bool& _bChangedSomething, bool _bRevertValue = false); /** fills the int value into the item set when the value changed. @@ -235,7 +234,6 @@ namespace dbaui @param _bChangedSomething if something changed otherwise */ - static void fillInt32(SfxItemSet& _rSet,NumericField const * _pEdit,sal_uInt16 _nID, bool& _bChangedSomething); static void fillInt32(SfxItemSet& _rSet,const weld::SpinButton* pEdit,sal_uInt16 _nID, bool& _bChangedSomething); /** fills the String value into the item set when the value changed. @@ -248,7 +246,6 @@ namespace dbaui @param _bChangedSomething if something changed otherwise */ - static void fillString(SfxItemSet& _rSet,Edit const * _pEdit,sal_uInt16 _nID, bool& _bChangedSomething); static void fillString(SfxItemSet& _rSet,const weld::Entry* pEdit,sal_uInt16 _nID, bool& _bChangedSomething); static void fillString(SfxItemSet& _rSet,const dbaui::OConnectionURLEdit* pEdit,sal_uInt16 _nID, bool& _bChangedSomething); -- cgit