summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-12 16:59:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-14 20:52:54 +0200
commita41aef4c1648519b934f0aed06d1c75f75fd852a (patch)
tree8c9065fd169408af192c408b8ec426695b1cbc5a /sfx2
parent80e081051da2c92c36c9b5aa280a944661bd3ddf (diff)
loplugin:unusedmethods
Change-Id: I9c1c6f27e35a66d8e3623c3ebb1618dceda60e24 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113988 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/Library_sfx.mk1
-rw-r--r--sfx2/inc/sidebar/DrawHelper.hxx41
-rw-r--r--sfx2/source/sidebar/Deck.cxx1
-rw-r--r--sfx2/source/sidebar/DrawHelper.cxx50
4 files changed, 0 insertions, 93 deletions
diff --git a/sfx2/Library_sfx.mk b/sfx2/Library_sfx.mk
index 34ea74dfe38c..f2fe7c708da7 100644
--- a/sfx2/Library_sfx.mk
+++ b/sfx2/Library_sfx.mk
@@ -272,7 +272,6 @@ $(eval $(call gb_Library_add_exception_objects,sfx,\
sfx2/source/sidebar/DeckDescriptor \
sfx2/source/sidebar/DeckLayouter \
sfx2/source/sidebar/DeckTitleBar \
- sfx2/source/sidebar/DrawHelper \
sfx2/source/sidebar/FocusManager \
sfx2/source/sidebar/IContextChangeReceiver \
sfx2/source/sidebar/ILayoutableWindow \
diff --git a/sfx2/inc/sidebar/DrawHelper.hxx b/sfx2/inc/sidebar/DrawHelper.hxx
deleted file mode 100644
index 3de485674a01..000000000000
--- a/sfx2/inc/sidebar/DrawHelper.hxx
+++ /dev/null
@@ -1,41 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#pragma once
-
-#include <vcl/outdev.hxx>
-
-class Color;
-class SvBorder;
-
-namespace sfx2::sidebar {
-
-/** Some convenience functions for painting backgrounds and borders.
-*/
-class DrawHelper
-{
-public:
- 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,
- const sal_Int32 nX, const sal_Int32 nWidth, const Color& rColor);
-};
-
-} // end of namespace sfx2::sidebar
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx
index 20acb6973881..074a0bad7466 100644
--- a/sfx2/source/sidebar/Deck.cxx
+++ b/sfx2/source/sidebar/Deck.cxx
@@ -20,7 +20,6 @@
#include <sfx2/sidebar/Deck.hxx>
#include <sidebar/DeckDescriptor.hxx>
#include <sidebar/DeckLayouter.hxx>
-#include <sidebar/DrawHelper.hxx>
#include <sidebar/DeckTitleBar.hxx>
#include <sidebar/PanelTitleBar.hxx>
#include <sfx2/sidebar/Panel.hxx>
diff --git a/sfx2/source/sidebar/DrawHelper.cxx b/sfx2/source/sidebar/DrawHelper.cxx
deleted file mode 100644
index 132707a227e9..000000000000
--- a/sfx2/source/sidebar/DrawHelper.cxx
+++ /dev/null
@@ -1,50 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include <sidebar/DrawHelper.hxx>
-
-#include <tools/svborder.hxx>
-
-namespace sfx2::sidebar {
-
-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)
-{
- rRenderContext.SetLineColor(rColor);
- for (sal_Int32 nYOffset = 0; nYOffset < nHeight; ++nYOffset)
- {
- rRenderContext.DrawLine(Point(nLeft, nY + nYOffset),
- Point(nRight, nY + nYOffset));
- }
-}
-
-void DrawHelper::DrawVerticalLine(vcl::RenderContext& rRenderContext, const sal_Int32 nTop, const sal_Int32 nBottom,
- const sal_Int32 nX, const sal_Int32 nWidth, const Color& rColor)
-{
- rRenderContext.SetLineColor(rColor);
- for (sal_Int32 nXOffset = 0; nXOffset < nWidth; ++nXOffset)
- {
- rRenderContext.DrawLine(Point(nX + nXOffset, nTop),
- Point(nX + nXOffset, nBottom));
- }
-}
-
-} // end of namespace sfx2::sidebar
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */