diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-18 13:09:04 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-19 12:10:35 +0000 |
commit | 04ddc7b3d7b22721dd311a24ddd9822342120981 (patch) | |
tree | db132ffe9353d4d4bb941b2993057cf931bcdfab /svx/source/sidebar | |
parent | 6a20f95fc9912f54f5817119749940d5dcf4fe90 (diff) |
loplugin:unusedmethods in svx
Change-Id: Ia22e8b55d263224dbb85169b6165a5c116e163aa
Reviewed-on: https://gerrit.libreoffice.org/25088
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/sidebar')
-rw-r--r-- | svx/source/sidebar/tools/Popup.cxx | 7 | ||||
-rw-r--r-- | svx/source/sidebar/tools/ValueSetWithTextControl.cxx | 39 |
2 files changed, 0 insertions, 46 deletions
diff --git a/svx/source/sidebar/tools/Popup.cxx b/svx/source/sidebar/tools/Popup.cxx index 1ab29dcda1bf..eb1f3dac014f 100644 --- a/svx/source/sidebar/tools/Popup.cxx +++ b/svx/source/sidebar/tools/Popup.cxx @@ -90,13 +90,6 @@ void Popup::Hide() mxContainer->EndPopupMode(); } -void Popup::SetPopupModeEndHandler (const ::std::function<void ()>& rCallback) -{ - maPopupModeEndCallback = rCallback; - if (mxContainer) - mxContainer->SetPopupModeEndHdl(LINK(this, Popup, PopupModeEndHandler)); -} - void Popup::ProvideContainerAndControl() { if ( ! (mxContainer && mxControl) diff --git a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx index 440ea416dc94..e3377e07e130 100644 --- a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx +++ b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx @@ -104,45 +104,6 @@ void ValueSetWithTextControl::AddItem( } -void ValueSetWithTextControl::ReplaceItemImages( - const sal_uInt16 nItemId, - const Image& rItemImage, - const Image* pSelectedItemImage ) -{ - if ( meControlType != IMAGE_TEXT ) - { - return; - } - - if ( nItemId == 0 || - nItemId > maItems.size() ) - { - return; - } - - maItems[nItemId-1].maItemImage = rItemImage; - maItems[nItemId-1].maSelectedItemImage = (pSelectedItemImage != nullptr) - ? *pSelectedItemImage - : rItemImage; - -//#ifndef MACOSX - if ( GetDPIScaleFactor() > 1 ) - { - BitmapEx b = maItems[nItemId-1].maItemImage.GetBitmapEx(); - b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor()); - maItems[nItemId-1].maItemImage = Image(b); - - if ( pSelectedItemImage != nullptr ) - { - b = maItems[nItemId-1].maSelectedItemImage.GetBitmapEx(); - b.Scale(GetDPIScaleFactor(), GetDPIScaleFactor()); - maItems[nItemId-1].maSelectedItemImage = Image(b); - } - } -//#endif -} - - void ValueSetWithTextControl::UserDraw( const UserDrawEvent& rUDEvt ) { const Rectangle aRect = rUDEvt.GetRect(); |