diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-01 12:57:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-02 08:28:07 +0200 |
commit | ee438031e6c0a1765cd607486d3ec65749d1dd62 (patch) | |
tree | 5f73e68e0e8a505affb6f8d6713b8749299d13ea /vcl/source | |
parent | d8759f225c5246465194b71b1407c84904752cc9 (diff) |
loplugin:unusedmethods
Change-Id: I523a42b721056f17a04870229834b0f2db00ff39
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101836
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/control/edit.cxx | 8 | ||||
-rw-r--r-- | vcl/source/control/imivctl.hxx | 3 | ||||
-rw-r--r-- | vcl/source/control/imivctl1.cxx | 32 |
3 files changed, 0 insertions, 43 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index b14789aaf133..c8087261ebd2 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2669,14 +2669,6 @@ Size Edit::CalcMinimumSize() const return CalcMinimumSizeForText(GetText()); } -Size Edit::GetMinimumEditSize() -{ - vcl::Window* pDefWin = ImplGetDefaultWindow(); - ScopedVclPtrInstance< Edit > aEdit( pDefWin, WB_BORDER ); - Size aSize( aEdit->CalcMinimumSize() ); - return aSize; -} - Size Edit::GetOptimalSize() const { return CalcMinimumSize(); diff --git a/vcl/source/control/imivctl.hxx b/vcl/source/control/imivctl.hxx index d361b28c8ce3..5dfa9c06946e 100644 --- a/vcl/source/control/imivctl.hxx +++ b/vcl/source/control/imivctl.hxx @@ -253,13 +253,11 @@ public: SvxIconChoiceCtrl_Impl( SvtIconChoiceCtrl* pView, WinBits nWinStyle ); ~SvxIconChoiceCtrl_Impl(); - void SetChoiceWithCursor() { bChooseWithCursor = true; } void Clear( bool bInCtor ); void SetStyle( WinBits nWinStyle ); WinBits GetStyle() const { return nWinBits; } void InsertEntry( std::unique_ptr<SvxIconChoiceCtrlEntry>, size_t nPos ); void RemoveEntry( size_t nPos ); - void CreateAutoMnemonics( MnemonicGenerator* _pGenerator ); void FontModified(); void SelectAll(); void SelectEntry( @@ -386,7 +384,6 @@ public: return maEntries[ nPos ].get(); } SvxIconChoiceCtrlEntry* GetFirstSelectedEntry() const; - void SetSelectionMode( SelectionMode eMode ) { eSelectionMode=eMode; } sal_Int32 GetEntryListPos( SvxIconChoiceCtrlEntry const * ) const; void InitSettings(); tools::Rectangle GetOutputRect() const; diff --git a/vcl/source/control/imivctl1.cxx b/vcl/source/control/imivctl1.cxx index 7ba4ef997499..14dd3e302c1e 100644 --- a/vcl/source/control/imivctl1.cxx +++ b/vcl/source/control/imivctl1.cxx @@ -233,38 +233,6 @@ void SvxIconChoiceCtrl_Impl::RemoveEntry(size_t nPos) RecalcAllBoundingRectsSmart(); } -void SvxIconChoiceCtrl_Impl::CreateAutoMnemonics( MnemonicGenerator* _pGenerator ) -{ - std::unique_ptr< MnemonicGenerator > pAutoDeleteOwnGenerator; - if ( !_pGenerator ) - { - _pGenerator = new MnemonicGenerator; - pAutoDeleteOwnGenerator.reset( _pGenerator ); - } - - sal_uLong nEntryCount = GetEntryCount(); - sal_uLong i; - - // insert texts in generator - for( i = 0; i < nEntryCount; ++i ) - { - DBG_ASSERT( GetEntry( i ), "-SvxIconChoiceCtrl_Impl::CreateAutoMnemonics(): more expected than provided!" ); - - _pGenerator->RegisterMnemonic( GetEntry( i )->GetText() ); - } - - // exchange texts with generated mnemonics - for( i = 0; i < nEntryCount; ++i ) - { - SvxIconChoiceCtrlEntry* pEntry = GetEntry( i ); - OUString aTxt = pEntry->GetText(); - - OUString aNewText = _pGenerator->CreateMnemonic( aTxt ); - if( aNewText != aTxt ) - pEntry->SetText( aNewText ); - } -} - tools::Rectangle SvxIconChoiceCtrl_Impl::GetOutputRect() const { Point aOrigin( pView->GetMapMode().GetOrigin() ); |