From 74cd0d0b281f8df75612bfb600df2eae62c4d21d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 29 Jun 2023 13:53:30 +0200 Subject: loplugin:unusedmethods Change-Id: I95ab7581dec35b113cb657ce8e5ee27c89c73593 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153746 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/ui/inc/DrawViewShell.hxx | 1 - sd/source/ui/inc/SlideSorter.hxx | 2 -- sd/source/ui/slidesorter/shell/SlideSorter.cxx | 7 ------- sd/source/ui/view/drviews1.cxx | 10 ---------- 4 files changed, 20 deletions(-) (limited to 'sd/source') diff --git a/sd/source/ui/inc/DrawViewShell.hxx b/sd/source/ui/inc/DrawViewShell.hxx index d3047cdeaf94..bf20af800f7e 100644 --- a/sd/source/ui/inc/DrawViewShell.hxx +++ b/sd/source/ui/inc/DrawViewShell.hxx @@ -252,7 +252,6 @@ public: */ bool SelectPage(sal_uInt16 nPage, sal_uInt16 nSelect); bool IsSelected(sal_uInt16 nPage); - bool IsVisible(sal_uInt16 nPage); void GotoBookmark(std::u16string_view rBookmark); //Realize multi-selection of objects, If object is marked, the diff --git a/sd/source/ui/inc/SlideSorter.hxx b/sd/source/ui/inc/SlideSorter.hxx index c922e5ce4238..cbd15bd6ac11 100644 --- a/sd/source/ui/inc/SlideSorter.hxx +++ b/sd/source/ui/inc/SlideSorter.hxx @@ -122,8 +122,6 @@ public: */ ViewShellBase* GetViewShellBase() const { return mpViewShellBase;} - void Paint (const ::tools::Rectangle& rRepaintArea); - /** Place and size the controls and windows. You may want to call this method when something has changed that for instance affects the visibility state of the scroll bars. diff --git a/sd/source/ui/slidesorter/shell/SlideSorter.cxx b/sd/source/ui/slidesorter/shell/SlideSorter.cxx index 534a7aa2fbf6..3428f1980468 100644 --- a/sd/source/ui/slidesorter/shell/SlideSorter.cxx +++ b/sd/source/ui/slidesorter/shell/SlideSorter.cxx @@ -158,13 +158,6 @@ Reference SlideSorter::GetXController() const return xController; } -void SlideSorter::Paint (const ::tools::Rectangle& rRepaintArea) -{ - GetController().Paint( - rRepaintArea, - GetContentWindow()); -} - void SlideSorter::SetupControls() { GetVerticalScrollBar()->Show(); diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx index e41e87b08d55..f9378e1ec4fd 100644 --- a/sd/source/ui/view/drviews1.cxx +++ b/sd/source/ui/view/drviews1.cxx @@ -821,16 +821,6 @@ bool DrawViewShell::IsSelected(sal_uInt16 nPage) return false; } -bool DrawViewShell::IsVisible(sal_uInt16 nPage) -{ - slidesorter::SlideSorterViewShell* pVShell - = slidesorter::SlideSorterViewShell::GetSlideSorter(GetViewShellBase()); - if (pVShell != nullptr) - return pVShell->GetSlideSorter().GetController().GetPageSelector().IsPageVisible(nPage); - - return false; -} - /** * Switch to desired page. * nSelectPage refers to the current EditMode -- cgit