summaryrefslogtreecommitdiff
path: root/svtools/source/contnr/treelistbox.cxx
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2017-08-19 02:31:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-20 18:45:30 +0200
commit5704bc5578aea2ff3295ada9e4b61b8a9247c8e7 (patch)
tree9b5e2ef118c97010468aa8baa583fcb244d5d19f /svtools/source/contnr/treelistbox.cxx
parentfe195f2c7b0c22169f265b731981bef47119f166 (diff)
svtools: remove function with unused return value
and inline only functionality Change-Id: I79b0ec29dcc35e9dc92aaac9fb191c882a9b0621 Reviewed-on: https://gerrit.libreoffice.org/41362 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/contnr/treelistbox.cxx')
-rw-r--r--svtools/source/contnr/treelistbox.cxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 2ca55b745920..06b1def0df44 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -2129,15 +2129,6 @@ void SvTreeListBox::SetDragDropMode( DragDropMode nDDMode )
pImpl->SetDragDropMode( nDDMode );
}
-short SvTreeListBox::GetHeightOffset(const Image& rBmp, Size& aSizeLogic )
-{
- short nOffset = 0;
- aSizeLogic = rBmp.GetSizePixel();
- if( GetEntryHeight() > aSizeLogic.Height() )
- nOffset = ( GetEntryHeight() - (short)aSizeLogic.Height()) / 2;
- return nOffset;
-}
-
void SvTreeListBox::SetEntryHeight( SvTreeListEntry const * pEntry )
{
short nHeightMax=0;
@@ -2181,8 +2172,7 @@ void SvTreeListBox::SetEntryWidth( short nWidth )
void SvTreeListBox::AdjustEntryHeight( const Image& rBmp )
{
- Size aSize;
- GetHeightOffset( rBmp, aSize );
+ const Size aSize( rBmp.GetSizePixel() );
if( aSize.Height() > nEntryHeight )
{
nEntryHeight = (short)aSize.Height() + nEntryHeightOffs;