summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-18 15:20:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-19 07:59:43 +0200
commit74f938bb10b6db8cae071efc9fd29015befeb5e6 (patch)
tree8d35905cdf1293819797c6b03bb93678b63796cc /dbaccess
parentb98cb40d974d40d131b6b25f96e9c53890154296 (diff)
loplugin:unusedmethods
Change-Id: I95e63105654952d12c1dfd62f51593de114be569 Reviewed-on: https://gerrit.libreoffice.org/81077 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/inc/UITools.hxx6
-rw-r--r--dbaccess/source/ui/misc/UITools.cxx19
2 files changed, 0 insertions, 25 deletions
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<TaskPaneList,vcl::Window*>& _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;