diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-08-19 02:31:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-20 18:45:30 +0200 |
commit | 5704bc5578aea2ff3295ada9e4b61b8a9247c8e7 (patch) | |
tree | 9b5e2ef118c97010468aa8baa583fcb244d5d19f /svtools | |
parent | fe195f2c7b0c22169f265b731981bef47119f166 (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')
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 3 | ||||
-rw-r--r-- | svtools/source/contnr/treelistbox.cxx | 12 |
2 files changed, 2 insertions, 13 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index de8a49889e5c..1a13a08dfbed 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -1567,8 +1567,7 @@ void SvImpLBox::CollapsingEntry( SvTreeListEntry* pEntry ) void SvImpLBox::SetNodeBmpYOffset( const Image& rBmp ) { - Size aSize; - pView->GetHeightOffset( rBmp, aSize ); + const Size aSize( rBmp.GetSizePixel() ); nNodeBmpWidth = aSize.Width(); } 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; |