From 74f938bb10b6db8cae071efc9fd29015befeb5e6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 18 Oct 2019 15:20:16 +0200 Subject: loplugin:unusedmethods Change-Id: I95e63105654952d12c1dfd62f51593de114be569 Reviewed-on: https://gerrit.libreoffice.org/81077 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/source/ui/inc/UITools.hxx | 6 ------ dbaccess/source/ui/misc/UITools.cxx | 19 ------------------- 2 files changed, 25 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/source/ui/inc/UITools.hxx b/dbaccess/source/ui/inc/UITools.hxx index cf14f3a97ef6..c3e2097a4a70 100644 --- a/dbaccess/source/ui/inc/UITools.hxx +++ b/dbaccess/source/ui/inc/UITools.hxx @@ -220,12 +220,6 @@ namespace dbaui vcl::Window* _pToRegister, const ::comphelper::mem_fun1_t& _rMemFunc); - /** adjustToolBoxSize checks if the size of the ToolBox is still valid. If not it will be resized. - @param _pToolBox - The Toolbox which should be resized. - */ - void adjustToolBoxSize(ToolBox* _pToolBox); - void adjustBrowseBoxColumnWidth( ::svt::EditBrowseBox* _pBox, sal_uInt16 _nColId ); /** check if SQL92 name checking is enabled diff --git a/dbaccess/source/ui/misc/UITools.cxx b/dbaccess/source/ui/misc/UITools.cxx index fe68343700d1..84b2d6f9095a 100644 --- a/dbaccess/source/ui/misc/UITools.cxx +++ b/dbaccess/source/ui/misc/UITools.cxx @@ -950,25 +950,6 @@ void notifySystemWindow(vcl::Window const * _pWindow, vcl::Window* _pToRegister, } } -void adjustToolBoxSize(ToolBox* _pToolBox) -{ - // adjust the toolbox size, otherwise large bitmaps don't fit into - Size aOldSize = _pToolBox->GetSizePixel(); - Size aSize = _pToolBox->CalcWindowSizePixel(); - if ( !aSize.Width() ) - aSize.setWidth( aOldSize.Width() ); - else if ( !aSize.Height() ) - aSize.setHeight( aOldSize.Height() ); - - Size aTbSize = _pToolBox->GetSizePixel(); - if ( (aSize.Width() && aSize.Width() != aTbSize.Width()) || - (aSize.Height() && aSize.Height() != aTbSize.Height()) ) - { - _pToolBox->SetPosSizePixel( _pToolBox->GetPosPixel(), aSize ); - _pToolBox->Invalidate(); - } -} - void adjustBrowseBoxColumnWidth( ::svt::EditBrowseBox* _pBox, sal_uInt16 _nColId ) { sal_Int32 nColSize = -1; -- cgit