diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-18 09:35:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-18 11:00:59 +0000 |
commit | fde0892f2d77c19b2c281aece7d20244640aa147 (patch) | |
tree | 28e64d43427ccdf5fac20285a8ac9998bc9f0afe /vcl | |
parent | c80a0fcdd9a4389616e92cfeafa9d932a784ee71 (diff) |
loplugin:unusedmethods
Change-Id: I567c672a0606ac11c0f269fcf5cc3906684e23f9
Reviewed-on: https://gerrit.libreoffice.org/30950
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/listbox.hxx | 3 | ||||
-rw-r--r-- | vcl/source/control/imp_listbox.cxx | 3 |
2 files changed, 1 insertions, 5 deletions
diff --git a/vcl/inc/listbox.hxx b/vcl/inc/listbox.hxx index 580261313f33..a589c72fdaa1 100644 --- a/vcl/inc/listbox.hxx +++ b/vcl/inc/listbox.hxx @@ -513,7 +513,6 @@ private: Image maImage; Rectangle maFocusRect; - Size maUserItemSize; Link<void*,void> maMBDownHdl; Link<UserDrawEvent*, void> maUserDrawHdl; @@ -546,8 +545,6 @@ public: void SetMBDownHdl( const Link<void*,void>& rLink ) { maMBDownHdl = rLink; } void SetUserDrawHdl( const Link<UserDrawEvent*, void>& rLink ) { maUserDrawHdl = rLink; } - void SetUserItemSize( const Size& rSz ) { maUserItemSize = rSz; } - void EnableUserDraw( bool bUserDraw ) { mbUserDrawEnabled = bUserDraw; } bool IsUserDrawEnabled() const { return mbUserDrawEnabled; } diff --git a/vcl/source/control/imp_listbox.cxx b/vcl/source/control/imp_listbox.cxx index 70deaaeb8079..f957c451a02d 100644 --- a/vcl/source/control/imp_listbox.cxx +++ b/vcl/source/control/imp_listbox.cxx @@ -2805,8 +2805,7 @@ void ImplWin::DrawEntry(vcl::RenderContext& rRenderContext, bool bDrawImage, boo if ( !bDrawTextAtImagePos && ( bImage || IsUserDrawEnabled() ) ) { - long nMaxWidth = std::max( maImage.GetSizePixel().Width(), maUserItemSize.Width() ); - aTextRect.Left() += nMaxWidth + IMG_TXT_DISTANCE; + aTextRect.Left() += maImage.GetSizePixel().Width() + IMG_TXT_DISTANCE; } MetricVector* pVector = bLayout ? &mpControlData->mpLayoutData->m_aUnicodeBoundRects : nullptr; |