diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-06-29 09:47:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-06-29 12:04:22 +0200 |
commit | 9294b76982ef9d80c387afe109a3ec1c6c4da661 (patch) | |
tree | 6924c029d18bc328bbfde3ad8fa12bf4a4d59abf /framework | |
parent | 589134377d5d8e496454e4df08d1065abffdbbf3 (diff) |
loplugin:unusedmethods
Change-Id: I4cccac5b6bba55d87361b07b05220ce890e75412
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97390
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/inc/uielement/complextoolbarcontroller.hxx | 1 | ||||
-rw-r--r-- | framework/source/uielement/complextoolbarcontroller.cxx | 11 |
2 files changed, 0 insertions, 12 deletions
diff --git a/framework/inc/uielement/complextoolbarcontroller.hxx b/framework/inc/uielement/complextoolbarcontroller.hxx index 5c5bf8499eeb..5036943299e9 100644 --- a/framework/inc/uielement/complextoolbarcontroller.hxx +++ b/framework/inc/uielement/complextoolbarcontroller.hxx @@ -75,7 +75,6 @@ class ComplexToolbarController : public svt::ToolboxController }; protected: - static sal_Int32 getFontSizePixel( const vcl::Window* pWindow ); css::uno::Reference< css::frame::XDispatch > getDispatchFromCommand( const OUString& aCommand ) const; void addNotifyInfo( const OUString& aEventName, const css::uno::Reference< css::frame::XDispatch >& xDispatch, diff --git a/framework/source/uielement/complextoolbarcontroller.cxx b/framework/source/uielement/complextoolbarcontroller.cxx index 06da77962f4a..a4c3f96b0583 100644 --- a/framework/source/uielement/complextoolbarcontroller.cxx +++ b/framework/source/uielement/complextoolbarcontroller.cxx @@ -272,17 +272,6 @@ void ComplexToolbarController::addNotifyInfo( Application::PostUserEvent( LINK(nullptr, ComplexToolbarController, Notify_Impl), pNotifyInfo ); } -sal_Int32 ComplexToolbarController::getFontSizePixel( const vcl::Window* pWindow ) -{ - const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings(); - const vcl::Font& rFont = rSettings.GetAppFont(); - - // Calculate height of the application font used by window - sal_Int32 nHeight = sal_Int32( rFont.GetFontHeight() ); - ::Size aPixelSize = pWindow->LogicToPixel(::Size(0, nHeight), MapMode(MapUnit::MapAppFont)); - return aPixelSize.Height(); -} - uno::Reference< frame::XDispatch > ComplexToolbarController::getDispatchFromCommand( const OUString& aCommand ) const { uno::Reference< frame::XDispatch > xDispatch; |