summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-18 15:20:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-19 07:59:43 +0200
commit74f938bb10b6db8cae071efc9fd29015befeb5e6 (patch)
tree8d35905cdf1293819797c6b03bb93678b63796cc /cui
parentb98cb40d974d40d131b6b25f96e9c53890154296 (diff)
loplugin:unusedmethods
Change-Id: I95e63105654952d12c1dfd62f51593de114be569 Reviewed-on: https://gerrit.libreoffice.org/81077 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/screenshotannotationdlg.cxx33
1 files changed, 0 insertions, 33 deletions
diff --git a/cui/source/dialogs/screenshotannotationdlg.cxx b/cui/source/dialogs/screenshotannotationdlg.cxx
index cc43afa14a2f..8dd164f7c9e9 100644
--- a/cui/source/dialogs/screenshotannotationdlg.cxx
+++ b/cui/source/dialogs/screenshotannotationdlg.cxx
@@ -143,10 +143,6 @@ private:
DECL_LINK(saveButtonHandler, weld::Button&, void);
// helper methods
- void CollectChildren(
- const vcl::Window& rCurrent,
- const basegfx::B2IPoint& rTopLeft,
- weld::ScreenShotCollection& rControlDataCollection);
weld::ScreenShotEntry* CheckHit(const basegfx::B2IPoint& rPosition);
void PaintScreenShotEntry(
const weld::ScreenShotEntry& rEntry,
@@ -273,35 +269,6 @@ ScreenshotAnnotationDlg_Impl::ScreenshotAnnotationDlg_Impl(
}
}
-void ScreenshotAnnotationDlg_Impl::CollectChildren(
- const vcl::Window& rCurrent,
- const basegfx::B2IPoint& rTopLeft,
- weld::ScreenShotCollection& rControlDataCollection)
-{
- if (rCurrent.IsVisible())
- {
- const Point aCurrentPos(rCurrent.GetPosPixel());
- const Size aCurrentSize(rCurrent.GetSizePixel());
- const basegfx::B2IPoint aCurrentTopLeft(rTopLeft.getX() + aCurrentPos.X(), rTopLeft.getY() + aCurrentPos.Y());
- const basegfx::B2IRange aCurrentRange(aCurrentTopLeft, aCurrentTopLeft + basegfx::B2IPoint(aCurrentSize.Width(), aCurrentSize.Height()));
-
- if (!aCurrentRange.isEmpty())
- {
- rControlDataCollection.emplace_back(rCurrent.GetHelpId(), aCurrentRange);
- }
-
- for (sal_uInt16 a(0); a < rCurrent.GetChildCount(); a++)
- {
- vcl::Window* pChild = rCurrent.GetChild(a);
-
- if (nullptr != pChild)
- {
- CollectChildren(*pChild, aCurrentTopLeft, rControlDataCollection);
- }
- }
- }
-}
-
ScreenshotAnnotationDlg_Impl::~ScreenshotAnnotationDlg_Impl()
{
mxVirtualBufferDevice.disposeAndClear();