From 3b9866ee35fe3567e850f0f1a888d96e60b6fbfa Mon Sep 17 00:00:00 2001 From: Noel Date: Wed, 24 Mar 2021 14:47:21 +0200 Subject: loplugin:unusedmethods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id54e7545b3a69e03c29daf9d372bbf605312f547 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113036 Reviewed-by: Tomaž Vajngerl Reviewed-by: Caolán McNamara Reviewed-by: Noel Grandin Tested-by: Jenkins --- sfx2/inc/sidebar/DrawHelper.hxx | 2 -- sfx2/source/devtools/DevelopmentToolDockingWindow.cxx | 5 ----- sfx2/source/sidebar/DrawHelper.cxx | 19 ------------------- sfx2/source/sidebar/Theme.cxx | 9 --------- 4 files changed, 35 deletions(-) (limited to 'sfx2') diff --git a/sfx2/inc/sidebar/DrawHelper.hxx b/sfx2/inc/sidebar/DrawHelper.hxx index 8ac1c7e51c49..3de485674a01 100644 --- a/sfx2/inc/sidebar/DrawHelper.hxx +++ b/sfx2/inc/sidebar/DrawHelper.hxx @@ -30,8 +30,6 @@ namespace sfx2::sidebar { class DrawHelper { public: - static void DrawBorder(vcl::RenderContext& rRenderContext, const tools::Rectangle& rBox, const SvBorder& rBorderSize, - const Color& rHorizontalColor, const Color& rVerticalColor); static void DrawHorizontalLine(vcl::RenderContext& rRenderContext, const sal_Int32 nLeft, const sal_Int32 nRight, const sal_Int32 nY, const sal_Int32 nHeight, const Color& rColor); static void DrawVerticalLine(vcl::RenderContext& rRenderContext, const sal_Int32 nTop, const sal_Int32 nBottom, diff --git a/sfx2/source/devtools/DevelopmentToolDockingWindow.cxx b/sfx2/source/devtools/DevelopmentToolDockingWindow.cxx index 30bbbed72942..817647ca9754 100644 --- a/sfx2/source/devtools/DevelopmentToolDockingWindow.cxx +++ b/sfx2/source/devtools/DevelopmentToolDockingWindow.cxx @@ -65,11 +65,6 @@ IMPL_LINK(DevelopmentToolDockingWindow, DocumentModelTreeViewSelectionHandler, w maObjectInspectorTreeHandler.introspect(xObject); } -IMPL_LINK_NOARG(DevelopmentToolDockingWindow, SelectionToggled, weld::ToggleButton&, void) -{ - updateSelection(); -} - IMPL_LINK(DevelopmentToolDockingWindow, DomToolbarButtonClicked, const OString&, rSelectionId, void) { if (rSelectionId == "dom_refresh_button") diff --git a/sfx2/source/sidebar/DrawHelper.cxx b/sfx2/source/sidebar/DrawHelper.cxx index ceb4d23717d6..132707a227e9 100644 --- a/sfx2/source/sidebar/DrawHelper.cxx +++ b/sfx2/source/sidebar/DrawHelper.cxx @@ -23,25 +23,6 @@ namespace sfx2::sidebar { -void DrawHelper::DrawBorder(vcl::RenderContext& rRenderContext, const tools::Rectangle& rBox, const SvBorder& rBorderSize, - const Color& rHorizontalColor, const Color& rVerticalColor) -{ - // Draw top line. - DrawHorizontalLine(rRenderContext, rBox.Left(), rBox.Right(), - rBox.Top(), rBorderSize.Top(), rHorizontalColor); - - // Draw bottom line. - DrawHorizontalLine(rRenderContext, rBox.Left() + rBorderSize.Left(), rBox.Right(), - rBox.Bottom() - rBorderSize.Bottom() + 1, rBorderSize.Bottom(), - rHorizontalColor); - // Draw left line. - DrawVerticalLine(rRenderContext, rBox.Top() + rBorderSize.Top(), rBox.Bottom(), - rBox.Left(), rBorderSize.Left(), rVerticalColor); - // Draw right line. - DrawVerticalLine(rRenderContext, rBox.Top() + rBorderSize.Top(), rBox.Bottom() - rBorderSize.Bottom(), - rBox.Right() - rBorderSize.Right() + 1, rBorderSize.Right(), rVerticalColor); -} - void DrawHelper::DrawHorizontalLine(vcl::RenderContext& rRenderContext, const sal_Int32 nLeft, const sal_Int32 nRight, const sal_Int32 nY, const sal_Int32 nHeight, const Color& rColor) { diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx index dde87375dd5c..cd4ce36bd658 100644 --- a/sfx2/source/sidebar/Theme.cxx +++ b/sfx2/source/sidebar/Theme.cxx @@ -77,15 +77,6 @@ sal_Int32 Theme::GetInteger (const ThemeItem eItem) return rTheme.maIntegers[nIndex]; } -bool Theme::GetBoolean (const ThemeItem eItem) -{ - const PropertyType eType (GetPropertyType(eItem)); - OSL_ASSERT(eType==PT_Boolean); - const sal_Int32 nIndex (GetIndex(eItem, eType)); - const Theme& rTheme (GetCurrentTheme()); - return rTheme.maBooleans[nIndex]; -} - bool Theme::IsHighContrastMode() { const Theme& rTheme (GetCurrentTheme()); -- cgit