summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-03-24 14:47:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-03-24 20:00:47 +0100
commit3b9866ee35fe3567e850f0f1a888d96e60b6fbfa (patch)
treef31d1041ff04dee34995ef7629112a1051162f9b /sfx2
parent137b08799808d93614045aba7f7c2e77b7eaf9d3 (diff)
loplugin:unusedmethods
Change-Id: Id54e7545b3a69e03c29daf9d372bbf605312f547 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113036 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/inc/sidebar/DrawHelper.hxx2
-rw-r--r--sfx2/source/devtools/DevelopmentToolDockingWindow.cxx5
-rw-r--r--sfx2/source/sidebar/DrawHelper.cxx19
-rw-r--r--sfx2/source/sidebar/Theme.cxx9
4 files changed, 0 insertions, 35 deletions
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());